Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
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.
We're encountering this issue on our app too. Even after requesting the required unauthenticated scopes.
Hello @sebastiandev! I have the same issue.
It seems to work if you added more scopes:
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.
Hi @GuillermoGarcia ,
do you try to create checkout via Storefront API ? I ask because I have issue.
Hey! Did you ever manage to solve this or find a workaround?