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

Revoke access token if password is changed #141

Open
HadiDoDev opened this issue Jul 24, 2019 · 2 comments
Open

Revoke access token if password is changed #141

HadiDoDev opened this issue Jul 24, 2019 · 2 comments

Comments

@HadiDoDev
Copy link

HadiDoDev commented Jul 24, 2019

If the user changes his/her password, the old access tokens can still be used until it expired.
How to make access tokens invalid if username or password is changed. #59 !

I built a multi-platform project that I need to logout users from other devices after changing their password
also revoking access token when a user logout. thanks

@adwait-thattey
Copy link

Access tokens, by definition can not be blacklisted. There is no database hit to check access tokens. Only basic decoding/encoding.
You need to blacklist corresponding refresh tokens. The expiry time of access tokens should be reasonably small so that anyone who gets access token can use it only for a short duration without the refresh token.

@HadiDoDev
Copy link
Author

HadiDoDev commented Dec 15, 2019 via email

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

2 participants