App must be a channel or have unauthenticated scopes to create a storefront access token.

App must be a channel or have unauthenticated scopes to create a storefront access token.

sebastiandev
Shopify Partner
67 1 20

We are working on an app and we want it to use the Storefront API. However, we get an error:

"App must be a channel or have unauthenticated scopes to create a storefront access token."


We know that there has been a change recently and the application does not have to be a sales channel, which makes us very happy.


However, we are having trouble accessing the Storefront API. Error details:


1. Our application has the following scopes:
- read_themes
- write_checkouts
- unauthenticated_write_checkouts

2. We are trying to authorize according to the documentation -> we get an error from the API: App must be a channel or have unauthenticated scopes to create a storefront access token.

Additionally, we are trying to get an access token using this API - and we also get the error:

 

App must be a channel or have unauthenticated scopes to create a storefront access token

 

I feel like we forgot something obvious.

Replies 4 (4)

Lanre
Shopify Partner
2 0 0

We're encountering this issue on our app too. Even after requesting the required unauthenticated scopes. 

GuillermoGarcia
Shopify Partner
4 0 1

Hello @sebastiandev! I have the same issue.

 

It seems to work if you added more scopes:

  • unauthenticated_read_product_listings
  • unauthenticated_read_collection_listings
  • unauthenticated_write_customers

There may be some kind of bug and the "unauthenticated_write_checkouts" scope doesn't work to allow you to request the Storefront Token. I have added these other three scopes and I no longer get the same error.

 

I'm still investigating, but with this it seems that I can move forward. Hope this can help you.

sebastiandev
Shopify Partner
67 1 20

Hi @GuillermoGarcia ,


do you try to create checkout via Storefront API ? I ask because I have issue.




keiraarts
Shopify Partner
53 7 10

Hey! Did you ever manage to solve this or find a workaround?

Head of space operations on the Shopify moon-base.
Building orderediting.com, viaGlamour.com, magicsoaps.ca