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(auth): improve handling of authentication errors when fetching current user #653

Merged
merged 2 commits into from
Feb 4, 2025

Conversation

neSpecc
Copy link
Member

@neSpecc neSpecc commented Feb 4, 2025

When you open garage with outdated session, you will see an empty garage.
Now you will be logged out.

  • Update fetchCurrentUser API method to use new api.call with error handling
  • Modify user store action to handle unauthenticated errors
  • Reset store if user is not authenticated

…rrent user

- Update fetchCurrentUser API method to use new api.call with error handling
- Modify user store action to handle unauthenticated errors
- Reset store if user is not authenticated
@neSpecc neSpecc changed the title fix(auth): improve handling of authentication errors when fetching crrent user fix(auth): improve handling of authentication errors when fetching current user Feb 4, 2025
@neSpecc neSpecc merged commit a261649 into master Feb 4, 2025
2 checks passed
@neSpecc neSpecc deleted the logout branch February 4, 2025 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants