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

Redirect to login once access token is expired #467

Closed
oxisto opened this issue Aug 20, 2024 · 0 comments · Fixed by #469
Closed

Redirect to login once access token is expired #467

oxisto opened this issue Aug 20, 2024 · 0 comments · Fixed by #469
Labels

Comments

@oxisto
Copy link
Owner

oxisto commented Aug 20, 2024

Currently, we just silently fail on backend calls once the access token is expired. We should redirect to the login page instead and fetch a new token.

@oxisto oxisto added the ui label Aug 20, 2024
oxisto added a commit that referenced this issue Aug 20, 2024
This PR adds better token handling on the server-side. It removes the backend API token from the `session`, since we do all calls on the server-side now, which is much cleaner. It also syncs the expiry of frontend and backend token (this fixes #467) and moves the locale to the user session.
oxisto added a commit that referenced this issue Aug 20, 2024
This PR adds better token handling on the server-side. It removes the backend API token from the `session`, since we do all calls on the server-side now, which is much cleaner. It also syncs the expiry of frontend and backend token (this fixes #467) and moves the locale to the user session.
@oxisto oxisto closed this as completed in 1553972 Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant