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

If JWT is expired, automatically navigate to login page #67

Open
awesomeaiden opened this issue Apr 4, 2022 · 1 comment
Open

If JWT is expired, automatically navigate to login page #67

awesomeaiden opened this issue Apr 4, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@awesomeaiden
Copy link
Collaborator

Right now if you go to the site and the browser has a stored JWT in cookie, it will take you to dashboard because it believes you are logged in. However the server will reject the JWT and you won't be able to see any data until you sign out and then sign back in again. Fix this somehow (maybe add loading screen or something?) to check with the server if the JWT is actually still valid before putting user on logged-in state.

RELATED: #32

@awesomeaiden awesomeaiden added the bug Something isn't working label Apr 4, 2022
@awesomeaiden awesomeaiden added this to the Advanced Features milestone Apr 4, 2022
@awesomeaiden
Copy link
Collaborator Author

May be able to quickly solve the issue if the cookie expiration on the client matches the server JWT expiration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant