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

[Bug] Session Expiration #211

Open
5 tasks
xHayden opened this issue Nov 7, 2024 · 0 comments
Open
5 tasks

[Bug] Session Expiration #211

xHayden opened this issue Nov 7, 2024 · 0 comments
Labels
bug Something isn't working fullstack

Comments

@xHayden
Copy link
Contributor

xHayden commented Nov 7, 2024

Context

Right now, if a session becomes expired, you can still use the site and get errors when trying certain things. Something should be done to ensure that if a session is expired, the user is unauthenticated.
For example, if a account is deleted and someone still has that account signed in on a page, they can still do stuff until they reload.

Requirements

Frontend

Backend

  • Investigate if there is a solution to this problem.
  • If there isn't or the solution is too complex, abandon this ticket and let Hayden know.

Acceptance Criteria

  • If sessions expire, the user should be forced to reload if it can be tracked.
  • Expired sessions should not cause rendering errors, all of that should be handled.
  • Expired sessions should not be authenticated to make requests.
  • Sessions should be preferably be updated rather than marked as stale requiring re-authentication.
  • Sessions should be revalided with getServerSession (existing authenticate method as used in API calls) as much as possible.

Notes

getServerSession, which is used in the authenticate method, should already update the session content.
If it isn't used, this content might not be updated.

getServerSession

@xHayden xHayden added bug Something isn't working fullstack labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fullstack
Projects
None yet
Development

No branches or pull requests

2 participants