🔑 JWT is a scam and your app doesn't need it 「 The token is valid until it expi...

@jbz@indieweb.social

🔑 JWT is a scam and your app doesn't need it

ï½¢ The token is valid until it expires, full stop. The only way to invalidate it is to store the jti server-side in a revocation list and check that list on every single request. Which is a database lookup. Which is the thing JWT was supposed to let you skip. Congratulations, you've reinvented sessions, badly ï½£

dusanmalusev.dev/blog/jwt-is-a

#jwt #authentication