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

Callback after token validate error #55

Closed
YuriGitHub opened this issue Nov 3, 2016 · 4 comments
Closed

Callback after token validate error #55

YuriGitHub opened this issue Nov 3, 2016 · 4 comments

Comments

@YuriGitHub
Copy link

Hi guys. Can you create callback path after token validate error.
For example: User was deleted by admin and i have just error 401 (Unauthorized)

@neroniaky
Copy link
Owner

@YuriGitHub thanks for your suggestion. Gonna take a look into it.

@arjenbrandenburgh
Copy link
Collaborator

When my validate call fails and receive a "Unauthorized" message, the service still indicates that the user is logged in.

Going to assume that the issue I'm having with that is related to this one.

@neroniaky
Copy link
Owner

@YuriGitHub @cybey right now only .signOut() reset all data and deletes the local storage. If you want it to work as you described you have to call .signOut() yourself on a failed validate. This is probably something that should be implemented (and an option to turn it off). PR anyone? 😃

@arjenbrandenburgh
Copy link
Collaborator

See #64

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

No branches or pull requests

3 participants