SQLiteSessionStorage reset after restarting app server

I’ve developed a Shopify custom app. In the app, I’ve included a cronjob to retrieve session storage data for the access token and shop name. I use this data to fetch Shopify orders. However, after deploying the app, if the app server restarts, the session storage becomes null, causing the cronjob to fail.

Hi @arpit211090 ,

Did you try afterAuth to extract accessToken and shop from session and save it to somewhere not sqlitesessionstorage, and use it to make api call. access token is permanent until uninstall, i think