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

[BUG] Clear Auth from Local Storage on 401 - Auth API Errors #16

Open
fehmisener opened this issue Jan 5, 2025 · 0 comments
Open

[BUG] Clear Auth from Local Storage on 401 - Auth API Errors #16

fehmisener opened this issue Jan 5, 2025 · 0 comments
Labels
bug Something isn't working high High importance

Comments

@fehmisener
Copy link
Contributor

Describe the bug
When a 401 - Auth API error occurs, the authentication token remains in local storage, and no error message is displayed to the user.

To Reproduce

  1. Trigger a 401 - Auth API error (e.g., by accessing a restricted page without valid or expired credentials).
  2. Observe that no error message is shown, and the authentication token remains in local storage.

Expected behavior
Upon receiving a 401 - Auth API error, the authentication token should be cleared from local storage (so that we can flow to the login page), and an appropriate error message should be displayed to the user.

Additional context
Implement proper error handling to clear auth data from local storage and notify the user about the authentication issue with the same design guidelines.

@fehmisener fehmisener added the bug Something isn't working label Jan 5, 2025
@fehmisener fehmisener added the high High importance label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high High importance
Projects
None yet
Development

No branches or pull requests

1 participant