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:
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.
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.
Hey! Did you ever manage to solve this or find a workaround?