shopify.session.customAppSession

October 2, 2023 ยท View on GitHub

Builds a session instance that can be used in a store-specific custom app.

It is the equivalent of calling the following:

const session = new Session({
  id: '',
  shop: `${sanitizeShop(config)(shop, true)}`,
  state: '',
  isOnline: false,
});

Note This method performs validation on the shop parameter and will throw an error if the shop is not valid.

Back to shopify.session