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

Fix the login session expiring in a few minutes #112

Open
CodeWithTheDoctor opened this issue Oct 5, 2024 · 2 comments
Open

Fix the login session expiring in a few minutes #112

CodeWithTheDoctor opened this issue Oct 5, 2024 · 2 comments

Comments

@CodeWithTheDoctor
Copy link
Contributor

CodeWithTheDoctor commented Oct 5, 2024

Basic Information

  • After 5-10 minutes or so of being on the site, the upcoming events don't load and requests ive 401 (unauthorised) even though the user is signed in on the frontend.
  • I suspect the user's session has experied on the backend.

Ideas to fix:

  • eliminate the session expiry on backend, or
  • Sign user out on frontend when session has expired rather than current unexpected behaviour
@dct0
Copy link
Contributor

dct0 commented Oct 5, 2024

The token should be refreshed when the old one expires in the axios interceptor on the FE. Maybe there's an issue there

@CodeWithTheDoctor
Copy link
Contributor Author

CodeWithTheDoctor commented Oct 5, 2024 via email

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

2 participants