Re:Don't use JSON web tokens for sessions
by mwpmaybe on Monday June 13, 2016 @05:45PM
(#11897968)
What does the revocation list look like? "Reject all tokens for user X issued before timestamp Y?" Or do you assign UUIDs to your tokens?
[ Parent
| on HN ]
Re:Don't use JSON web tokens for sessions
by numbsafari on Monday June 13, 2016 @08:30PM
(#11898919)
I assign a unique ID for each token (the `jti` claim). So each token has a unique identifier and can be invalidated that way, and every token has the user's ID (the `sub` claim), and can be invalidated that way, if that fits your use case.