Describe the bug
Unable to maintain login when opening multiple pages before logging in. Wasp keeps polling /auth/me with stale/empty sessionId and removing new ones
To Reproduce
Steps to reproduce the behavior:
Open two pages before logging in
Login on one of them
Wait and the unlogged page will request /auth/me with empty sessionId, resulting in a 401 error, which then removes the sessionId saved by the other page
Consequently, you will be logged out
Expected behavior
Always use the new ID to maintain the login status.
Describe the bug Unable to maintain login when opening multiple pages before logging in. Wasp keeps polling
/auth/me
with stale/empty sessionId and removing new onesTo Reproduce Steps to reproduce the behavior:
/auth/me
with emptysessionId
, resulting in a 401 error, which then removes thesessionId
saved by the other pageExpected behavior Always use the new ID to maintain the login status.