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

Get current user upon page refresh #142

Open
5 tasks
v0ldemar01 opened this issue Jun 16, 2024 · 0 comments
Open
5 tasks

Get current user upon page refresh #142

v0ldemar01 opened this issue Jun 16, 2024 · 0 comments

Comments

@v0ldemar01
Copy link
Collaborator

User story:
As a logged-in user, I want to ensure that my session is maintained and I’m not logged out upon page refresh, So that I can continue to use the app without having to log in again.

Acceptance criteria:

  • After refreshing the page, the user should still be logged in and able to access their account.
  • After refreshing the page, the user data should be refetched from stored in localStorage token.
  • The user should be redirected to the login page when encountering an expired token upon page refresh.
  • The user should be redirected to the login page when encountering an invalid token upon page refresh.
  • The user should be redirected to the login page when the token is unavailable upon page refresh.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant