Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Latest commit

 

History

History
18 lines (13 loc) · 489 Bytes

customAppSession.md

File metadata and controls

18 lines (13 loc) · 489 Bytes

shopify.session.customAppSession

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