ID Token
The ID token API asynchronously retrieves an OpenID Connect ID Token from Shopify that can be used to ensure that requests came from a Shopify authenticated user. See the ID Token documentation from more information.
Anchor to ID TokenID Token()
ID Token()
The API is available on the shopify global. It asynchronously retrieves an OpenID Connect ID Token from Shopify.
Anchor to ID Token-returnsReturns
Promise<string>
ID Token
await shopify.idToken();
Examples
ID Token
Default
await shopify.idToken();
Was this page helpful?