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 logoff on token expiration #4171

Open
VakarisZ opened this issue May 9, 2024 · 0 comments
Open

Fix logoff on token expiration #4171

VakarisZ opened this issue May 9, 2024 · 0 comments
Labels
Bug An error, flaw, misbehavior or failure in the Monkey or Monkey Island. UI:refactoring Issues related to refactoring to next.js

Comments

@VakarisZ
Copy link
Contributor

VakarisZ commented May 9, 2024

Describe the bug

When the token expires it responds with 401 to any request. Frontend sometimes can't handle the unexpected 401 response and crashes instead of redirecting to the login page.

To Reproduce

Steps to reproduce the behavior:

  1. Go to available plugins page
  2. Delete token
  3. Refresh the page

Expected behavior

On 401 we should redirect to the login page before the front end tries to parse the response.

@VakarisZ VakarisZ added Bug An error, flaw, misbehavior or failure in the Monkey or Monkey Island. UI:refactoring Issues related to refactoring to next.js labels May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug An error, flaw, misbehavior or failure in the Monkey or Monkey Island. UI:refactoring Issues related to refactoring to next.js
Projects
None yet
Development

No branches or pull requests

1 participant