-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Description
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.