shopify.session

October 2, 2023 ยท View on GitHub

This object contains functions used to authenticate apps, and redirect users to Shopify.

PropertyDescription
customAppSessionCreates a Session object suitable for use with shopify.clients and REST resources in a custom store app.
getCurrentIdExtracts a Shopify session id for the current request when there is user interaction with the app.
getOfflineIdBuilds the session id for the given shop, for background tasks that don't involve user interaction.
decodeSessionTokenExtracts and validates the session token JWT from App Bridge requests.
getJwtSessionIdBuilds the session ID for the given shop and user. Use for getting online tokens.

Back to shopifyApi