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 theshop
is not valid.