I’m using the storefrontAccessTokenCreate mutation from a public app. It is consistently returning Error: Access denied for storefrontAccessTokenCreate field. on my Shopify development store when I test it.
I see others having similar issues, and according to the linked forum post, the only way to have storefrontAccessTokenCreate work is by using/testing the app on a store with a paid Shopify plan (storefrontAccessTokenCreate doesn’t work on a development store). I’ve confirmed this with support.
How can I test my app that uses storefrontAccessTokenCreate without having to pay for a paid Shopify plan just to test?
By the way, if you’re using GraphQL Playground, you won’t be able to create a Storefront token with it. You’ll need to call the GraphQL API from somewhere else, like Postman or a server.
@suchir as far as i know I don’t think it’s a development store issue, we have dev store and public apps and are able to create storefront token without any issue.
Can you share your access scopes please?
FYI - I have “Current release” dev store, if you are trying out with “Developer preview” stores, may be try creating new “Current release” dev store.
@Gulam_Hussain_Quinn thanks for the response! that’s interesting that you can create storefront token without issues on the dev store! I set up my dev store with the same exact options that you configured in the image you shared (including “Current release” for build version). I created my dev store February 11, 2025.
The scopes I have on my app is just “read_themes”. As far as I can tell from the docs page, this mutation should not require any access scopes. Which access scopes do you have?
this worked @Gulam_Hussain_Quinn! I copied the scopes you’re using, redeployed my app using shopify app deploy and then i’m able to create the access token now. Thank you so much!
I think you only need unauthenticated access (e.g., unauthenticated_read_product_listings, etc.), as these permissions are required to use the Storefront API.