by habosa · 4y ago · 0 comments
The only way I know of to implement instant revocation in a system like this is to keep a blocklist of users/tokens that is constantly checked, which can be slow and removes some of the benefits of JWTs in the first place (that they carry all the auth information you need).
Keeping a blocklist seems unnecessary to me, you can just lower the expiration time.