guardicore / guardicore/monkey

Fix logoff on token expiration

Open
#4,171 0 comments 0 reactions 0 assignees View on GitHub
Bug UI:refactoring
Dominant language
Python
Stars
7.1k
Forks
830
PR merge metrics
No merged PRs in 30d

Description

## 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.