Hie @vishsahu Pse help. my app is randomly signing out. Sometimes immediately after signing in. Even twice or thrice in a role. Sometimes if I select a tab e.g. events tab. The signing out has been happening for a while now and was tolerable but not as regular but in the past few days or so it has intensified to include when I am in the preview mode. It says something like “Invalid token : user has been logged out”… And reverts to the Landing Page.
Thanks
The “Invalid token: user has been logged out” message suggests the token is being invalidated on the server side, not just dropped locally. Since it happens right after sign-in and on tab switches, check whether a token refresh is racing with the tab load or whether multiple sessions are overwriting each other. Preview mode may behave differently since it could run a separate session. Worth capturing the exact timestamps when it triggers, since the recent increase in frequency points to something that changed on the auth side.
1 Like
Greeting @alexandersmith Thanks for the response. I need to understand all what you have said more for me to be able to pinpoint the actual challenge since I am not a coder. However, from your explanation, it could be that multiple sessions are overwriting each other because when it happens I will have two or more tabs open, some on builder and some on preview. I assume those tabs represent a session when the page being viewed requires logging in. I was worried I had done something that could compromise my work…
Thanks a lot.