Main issue: After moving to Shopify CLI 3.x, the previous Shopify.Session.CustomSessionStorage constructor is gone, and developers need guidance to implement custom session storage (now requiring deleteSessions and findSessionsByShop in addition to existing handlers).
Key points:
The legacy callback-based constructor is no longer available in CLI 3.x.
A workable approach is to define a CustomSessionStorage class implementing five async methods:
• storeSession(session)
• loadSession(id)
• deleteSession(id)
• deleteSessions(ids)
• findSessionsByShop(shop)
Register it in the Shopify app config via: sessionStorage: new CustomSessionStorage().
One reply about the Partner “Team” tab and permissions was off-topic for this technical issue.
Outcome/status:
A concrete solution and official documentation link were provided, clarifying how to implement custom session storage under CLI 3.x. The discussion is effectively resolved.
I’m moving our app code into the app framework generated by Shopify CLI 3.x . I can’t find any documentation on how to implement custom session storage. The way we we’re doing it is:
const sessionStorage = new Shopify.Session.CustomSessionStorage(
myStoreCallback,
myLoadCallback,
myDeleteCallback
);
I know that there are two new handlers required (deleteSessions, findSessionsByShop) but cannot find how to create the SessionStorage object as Shopify.Session.CustomSessionStorage constructor no longer exists.
If there is any documentation available please provide a link; failing that please tell me how to create the custom session storage object.