SQLiteSessionStorage reset after restarting app server

SQLiteSessionStorage reset after restarting app server

Shopify Partner
1 0 0

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.

Reply 1 (1)

Shopify Expert
564 112 135

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

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.

B2B Solution & Custom Pricing |BSS: B2B Portal, Quote, Net 30 | BSS: B2B Login Lock Hide Price

Need help from our expert? Kindly share your request with us via community@bsscommerce.com

BSS Commerce - Full-service eCommerce Agency