News for hackers. Stuff that matters.
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.
Re:Don't use JSON web tokens for sessions by mwpmaybe on Monday June 13, 2016 @09:26PM (#11899134)
I read this wrong the first time. That makes sense. Thank you.