by ivanb · 8y ago · 0 comments
The benefit of JWTs is that token blacklists are usually much shorter than hypothetical token whitelists.
The advantage is that you can use a loosely consistent datastore with expiring entries and few records at any given time. There’s lots to love about the approach.
The author replies: "congratulations, you've just reinvented sessions, with all their problems (like centralized state) and gained nothing in the process", and also with an implementation that is "less battle-tested".
My own opinion: loose consistency can work in some circumstances, but seems a security risk in others.
Revolutionary, maybe not, a solid improvement on the traditional design of sessions, I think so.