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

How to logoff/logout or expire a JWT Token (not expire) ? #12

Closed
rpossan opened this issue May 14, 2021 · 1 comment
Closed

How to logoff/logout or expire a JWT Token (not expire) ? #12

rpossan opened this issue May 14, 2021 · 1 comment

Comments

@rpossan
Copy link

rpossan commented May 14, 2021

I tried to log out using the sorcery method (logout) but it just updates some columns from the user but if I continue using the JWT token it will be valid until it expired by the date, not respecting the logout method.
Any idea?

@hayfever
Copy link
Owner

Token invalidation is unfortunately beyond the scope of what I set out to do here, https://waiting-for-dev.github.io/blog/2017/01/24/jwt_revocation_strategies has been my reference for when I need to invalidate tokens.

A new version of sorcery is being worked on that should include some mechanism to handle this, you can follow the progress here: Sorcery/sorcery-rework#9

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