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

Use same key for saving user info in local store #13482

Merged
merged 1 commit into from Nov 25, 2022

Conversation

hbcarlos
Copy link
Member

Since we are using the username as a key to saving the user's identity in local storage, and the username is a randomly generated UUID, every time we remove the cookie, the server will generate a new anonymous user, and instead of removing the old identity and adding the new one to local storage, we are creating a new entry.

See:
Screenshot from 2022-11-24 17-51-28

References

Code changes

It uses a service ID as a key for saving the user identity in local storage.

User-facing changes

N/A

Backwards-incompatible changes

N/A

@jupyterlab-probot
Copy link

Thanks for making a pull request to jupyterlab!
To try out this branch on binder, follow this link: Binder

Copy link
Member

@fcollonval fcollonval left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @hbcarlos

One question, does that implies that the user name will be kept between two sessions?

@hbcarlos
Copy link
Member Author

One question, does that implies that the user name will be kept between two sessions?

Yes

@fcollonval fcollonval added this to the 3.6.0 milestone Nov 25, 2022
@fcollonval fcollonval merged commit e980b2e into jupyterlab:master Nov 25, 2022
@fcollonval
Copy link
Member

@meeseeksdev please backport to 3.6.x

meeseeksmachine pushed a commit to meeseeksmachine/jupyterlab that referenced this pull request Nov 25, 2022
@hbcarlos hbcarlos deleted the fix/user_service branch November 25, 2022 11:23
fcollonval pushed a commit that referenced this pull request Nov 28, 2022
…13488)

Co-authored-by: Carlos Herrero <contact@carloshb.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants