Now shopify let developer build apps in dashboard,in the process of building app,we should select scopes.I have a problem now,though I have selected storeFront Api scope and I got the token for the installed shop,but now I could only invoke the Admin Api,when I invoke the storeFront Api with the token,there comes the error.The error message is below.I don’t why,please help,thanks.
{"message":"","extensions":{"code":"UNAUTHORIZED"}}
It sounds like the issue may be related to how the Storefront API token is being used rather than the scope selection itself. The Storefront API requires calling the correct Storefront endpoint and passing the token in the proper header format, which is different from the Admin API. Even if the scope is selected, using an Admin API access token or incorrect headers will result in an UNAUTHORIZED error, so double-check the endpoint URL, API version, and that you’re using the Storefront access token specifically generated for Storefront requests.
Hey,
This forum is specific related to Shopify theme development. To get better answer, head over to this Question on Shopify Dev Community.