Access denied creating storefront access token

Access denied creating storefront access token

ghussain
Shopify Partner
3 0 1

I'm trying to create a `storefrontAccessToken` using the GraphQL API. Out of frustration, I have granted all unauthenticated access scopes, but it's still not working—I keep getting "access denied." What access scopes are required to create a `storefrontAccessToken`?

My app is currently public in draft state and it's not a sales channel. These Access scopes have been granted - 

read_metaobject_definitions,read_metaobjects,read_products,unauthenticated_read_checkouts,unauthenticated_read_content,unauthenticated_read_customer_tags,unauthenticated_read_customers,unauthenticated_read_metaobjects,unauthenticated_read_product_listings,unauthenticated_read_product_tags,unauthenticated_write_checkouts,unauthenticated_write_customers,write_metaobject_definitions,write_metaobjects

 

This is what i'm trying Screenshot 2024-07-18 at 8.16.33 AM.png

 

Reply 1 (1)

tobeofuse
Shopify Partner
4 0 4

It seems like the storefrontAccessTokenCreate mutation simply doesn't work in the GraphiQL interface shown in the screenshot. You have to make the request for a token from a real GraphQL client in your app code, or just make the GraphQL request with curl or Invoke-WebRequest on the command line.