How can I request more access scopes on app install?

Solved
ChristophLoy
New Member
2 1 1

I am building a private app and cant figure out where I have to define the access scopes I want to request on install. 

 

I listed all the access scopes I need in .env but even if I start the app server locally the requested access scopes are still just 

'write_products,write_customers,write_draft_orders' (the defaults, I believe). 

 

So where can I edit the list of scopes? 

0 Likes
ChristophLoy
New Member
2 1 1

This is an accepted solution.

Ok, I figure it out. I didn't update the access scopes in Shopify.Context.initialize() which for some reason were hardcoded.

 

Shopify.Context.initialize({
  API_KEY: process.env.SHOPIFY_API_KEY,
  API_SECRET_KEY: process.env.SHOPIFY_API_SECRET,
  SCOPES: SCOPES
  ...
})