How to attach sessionStorage to API configuration

How to attach sessionStorage to API configuration

Elmond
Shopify Partner
2 0 0

Hi, I created custom session storage and now i don't know how to add it to my api configuration which looks like this:

 

const Shopify = shopifyApi({
    apiKey: process.env.SHOPIFY_API_KEY,
    apiSecretKey: process.env.SHOPIFY_API_SECRET_KEY,
    scopes: process.env.SCOPES.split(','),
    hostName: process.env.HOST.replace(/https:\/\//, ""),
    isEmbeddedApp: false,
    apiVersion: LATEST_API_VERSION
})

I saw how to implement session storage in shopfiyApp function from 

@Shopify/shopify-app-express but im using next js.
Replies 0 (0)