gnikyt / laravel-shopify

A full-featured Laravel package for aiding in Shopify App development
MIT License
1.24k stars 374 forks source link

Run app in incognito mode #1068

Closed PhongNguyen512 closed 2 years ago

PhongNguyen512 commented 2 years ago

Hi guys,

I'm curious if I can run the Shopify app on incognito mode with laravel session (redis driver)?.

Currently, my app needs to store several users' data in Session when they are using my app, ex: API key (when logging in), shopping cart data, etc... . However, the laravel session keeps refreshinging when I am using my app on incognito mode. Therefore, I can't use my app because my app doesn't detect any API key in the session. The app keeps redirecting me to the login page. Everything works fine in normal browser mode.

Is anyone able to run the Shopify app on incognito mode?

Kyon147 commented 2 years ago

This has not been tested, so can't really give you any specific advice.

The package has gone pretty stateless now, with the removal of the cookies and going to JWT tokens. So you would need to handle the "per_user" request I think but it is limited to Plus only.

https://shopify.dev/apps/auth/oauth