Skip to content

fix: Only remove token on NotAuthenticated error in authentication client and handle error better#1525

Merged
daffl merged 2 commits intomasterfrom
authentication-client-error
Aug 24, 2019
Merged

fix: Only remove token on NotAuthenticated error in authentication client and handle error better#1525
daffl merged 2 commits intomasterfrom
authentication-client-error

Conversation

@daffl
Copy link
Copy Markdown
Member

@daffl daffl commented Aug 24, 2019

This PR adds a handleError method that only removes the access token on NotAuthenticated errors. It can be customized for custom error handling logic.

@daffl daffl merged commit 13a8758 into master Aug 24, 2019
@daffl daffl deleted the authentication-client-error branch August 24, 2019 16:34
@KidkArolis
Copy link
Copy Markdown
Contributor

This is great! I would add 404 for cases where the token is old and the user has been deleted and authenticate() returns 404

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.

Authentication-client removes acces token on failed reauthenticate.

2 participants