Questions and discussions about using the Shopify CLI and Shopify-built libraries.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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:
I have the same issue. It's really tough having to keep up with changes to the api without sufficient documentation.
Turns out there’s a tab under partner interface called “Team”
You could give another dev permission to the app you are building.
That's not answering the actual problem.
@dbleeker Here's what I did. Created a CustomSessionStorage class:
export class CustomSessionStorage {
async storeSession(session) {...}
async loadSession(id) {...}
async deleteSession(id) {...}
async deleteSessions(ids) {...}
async findSessionsByShop(shop) {...}
}
Create an instance in your shopify config:
sessionStorage: new CustomSessionStorage()
All return values for the class methods are described here: https://github.com/Shopify/shopify-app-js/blob/main/packages/shopify-app-session-storage/implementin...
Good luck 🙂