Re:JSON Web Tokens should be avoided
by vkjv on Tuesday March 14, 2017 @09:29AM
(#13867325)
Store it in a DB for persistence, but push it out to application memory. If for some reason you expect your blacklist to be very large (maybe, you have a massively popular API?), push a bloom filter of the blacklist instead of the actual list.
Now, you (probably) only absorb the DB hit on blacklisted tokens.
Now, you (probably) only absorb the DB hit on blacklisted tokens.