4 ms·
Just use stateful tokens because if you are dealing with sessions and you are doing it right, you WILL want to revoke them at the user's will or at some suspect
by andersonmvd 7y ago
Just use stateful tokens because if you are dealing with sessions and you are doing it right, you WILL want to revoke them at the user's will or at some suspect activity in a session.
I've wrote how to revoke a JWT (https://dadario.com.br/revoking-json-web-tokens/ https://dadario.com.br/revoking-json-web-tokens/ - caveat: requires a db lookup), but if you are going through the trouble of revoking a JWT, just use a stateful session instead. It's way easier.
You can use JWT to pass along user information to other components within your architecture, that's fine :)