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 on login page when token expires #1539

Merged
merged 2 commits into from
Jul 31, 2023

Conversation

AlexisSouquiere
Copy link
Collaborator

Fix #801

With the new permissions management, we have now an "Unauthorized" message on the screen when the token is expired
image

I added an interceptor that redirects to the login page

} catch (e) {
// Propagate cancel
if (axios.isCancel(error)) {
throw new axios.Cancel('Operation canceled by the user.');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo, should be cancelled.

@tchiotludo tchiotludo merged commit 0519dbc into tchiotludo:dev Jul 31, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Redirect to login page when user session/token expires
3 participants