Is the ScriptTag API needed to access the StorefrontAccessToken API?

Highlighted
Excursionist
38 3 2

My understanding of how access tokens are handled suggests the StorefrontAccessToken API depends on a posted script tag to make the request (from Client > Shopify App Server > StoreFrontAccessToken API). Is this correct?

 

If not, what other ways can the StorefrontAccessToken API be posted to?

0 Likes
Shopify Staff
Shopify Staff
223 28 28

Hey @seandz 

 

In order to best answer this question, can you provide more details to what you are looking at accomplishing? Is this for your online store? Are you using the Storefront API? 

 

As stated in our docs, you can create a StorefrontAccessToken through the API: https://help.shopify.com/en/api/reference/access/storefrontaccesstoken#create-2019-04 If you test this out in an API client such as Postman you can see the results. 

Vix | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 


1 Like
Excursionist
38 3 2

Thank you @vix , after looking into this more I think I have a better understanding. The storefront token is used to delegate scopes and best generated by the server before being passed to any client apps that need StoreFront API unauth data.

0 Likes