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>
Was this section helpful?
ID Token
await shopify.idToken();