4 ms·
If there is no difference, then what is the advantage of JWT?
by jrochkind1 4y ago
If there is no difference, then what is the advantage of JWT?
- hobofan 4y agoThat they've been around for long enough for proper implementations in all major languages to exist, their pitfalls being documented and a lot of devs have some familiarity with it. With that they are a better choice than most homebrew/framework-specific solutions. There are some other established (/"standardized") solutions, which might fit your use-case better though, but most of them lag behind JWT in implementations/dev familiarity.
- goodpoint 4y agoSpot on. Even better if they used a better serialization protocol than stupid JSON.
- fireflash38 4y agoJSON really is the worst serialization, except for all the others.
- Sohcahtoa82 4y agoWhat's wrong with JSON?
- Aeolun 4y agoMostly the fact you can check their validity without going to the database. If you have one you can keep using it without extra network roundtrips as long as it doesn’t expire. Only the validity of refresh tokens (for generating new access tokens) is checked.