App reviews, troubleshooting, and recommendations
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
Hi everyone,
I'm developing a Shopify app using @Shopify/shopify-app-express and I'm using a custom MySQL session storage by implementing SessionStorage and passing it as sessionStorage in the shopifyApp config.
Here's a summary of my setup:
Framework: @Shopify/shopify-app-express
Session storage: Custom MySQL (MySQLSessionStorage)
Auth flow works — I can visit /api/auth?shop=xxxxx.myshopify.com, get redirected, and hit /api/auth/callback.
However, no session is stored in my MySQL session table, even though the OAuth callback is called.
I confirmed:
My MySQL connection is working (other queries in the app are fine)
The storeSession method is implemented and logs show it's being called
No errors appear in the logs during the OAuth flow
Has anyone faced this issue before? Is there something special required in the session config to ensure it's saved? Any help or pointers would be appreciated.
Hi Alfaiz,
Please check the following -
If all these checks pass, your sessions should store correctly.
If you need more clarifications, do let me know .