I had trouble loading the token cookie in my PWA (Progressive Web App) when storing and loading it from the application cookies. On the desktop web (Browser) the cookie appears as normal and could be loaded/restored normally. On mobile devices even if the PWA was installed as a web app on the Android device, the cookie disappears after a while (normally within half ane hour). Which is exactly the default of cookie expire.
The default time for a Cookie to expire is 30 minutes.
Question: how to solve this?
Question 2: why does it work longer on desktop browsers?
question from:https://stackoverflow.com/questions/66056337/using-persist-cookies-with-react-on-mobile-devices