Skip to content

Conversation

@daffl
Copy link
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
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.

3 participants