Comment

Comment by franky47

Another drawback for JWTs (when used fully statelessly) is the inability to list active sessions on other devices (which may lead to revocation).

That being said, always going to the database for connecting an opaque session token to an identity can quickly become slow, and if those features listed above are not desirable, having a blocklist of revoked JWT IDs in an in-memory cache (like Redis) can bring back some performance benefits.

parent franky47 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton