Skip to main content

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.

The idToken API is available on the shopify global. It asynchronously retrieves an OpenID Connect ID Token from Shopify.

Promise<string>
Was this section helpful?

ID Token

await shopify.idToken();