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

feat: user needs to signin every refresh #10

Open
adrienfort opened this issue Sep 12, 2021 · 0 comments
Open

feat: user needs to signin every refresh #10

adrienfort opened this issue Sep 12, 2021 · 0 comments
Labels
enhancement New feature or request invalid This doesn't seem right

Comments

@adrienfort
Copy link
Member

Once you are logged in, if you refresh you can see that you need to signin again.

One of the solutions to fix that is to:

  • give the user a json web token with the user ID inside,
  • when a refresh happen, take this JWT (json web token), get the user ID
  • fetch the DB to find the user with the user ID
  • set the user context with the user found
@lucas-louis lucas-louis added the enhancement New feature or request label Mar 25, 2022
@adrienfort adrienfort added the invalid This doesn't seem right label Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants