Change from blacklisting tokens to whitelisting them #277
joaquinwojcik
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
My IMHO is: this does not belong into this library. Reasons:
The correct solution is to have short lived JWT and build that logic into your refresh flow whether you want to re-issue a token for a user or not. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I propose switching from a blacklist approach to a whitelist approach for token management.
Instead of storing a large list of invalidated tokens, it will only keep track of valid tokens in a whitelist, removing them upon logout or revocation.
This significantly improves performance and resource usage, as the whitelist remains relatively small.
It also offers more control and transparency: any token not on the whitelist is automatically invalid, simplifying checks for token validity and ensuring clean, efficient handling of active sessions.
Beta Was this translation helpful? Give feedback.
All reactions