Skip to content

Improve Frontend Token Handling #89

Description

@DenizAltunkapan

To enhance security and stability of authentication in the frontend, I suggest the following changes:

  1. Store token in sessionStorage instead of localStorage
    This ensures the token is cleared automatically when the browser tab is closed, reducing the risk of reusing outdated or invalid tokens.

  2. Validate token on every page reload
    On each initial page load, the frontend should call a backend endpoint to verify whether the token stored in the session is still valid.
    If the token is invalid or expired, the user should be redirected to the login page.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfrontendregarding frontend logic & designgood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions