Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load auth token from localStorage only #2477

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

infomiho
Copy link
Contributor

Fixes #2075

Before we had the sessionId in a variable that we had to keep in sync with the value in localStorage. This was a premature optimization because reading values from localStorage is not slow.

Now, if we eliminate the intermediate variable and just use localStorage directly, the issue with auth token being stale between tabs disappears.

We still have more work to improve the auth token system which #1880 and #1227 cover, but this is a good start to give our users a more polished auth UX.

Signed-off-by: Mihovil Ilakovac <[email protected]>
Signed-off-by: Mihovil Ilakovac <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Session ID is removed unexpectedly
2 participants