3 ms·
TLDR: Use PASETO [0] or its simpler alternative Branca [1]. JWT/JWS/JWE are classic examples of bad standards that the industry has chosen to adopt because eve
by rvz 7y ago
TLDR: Use PASETO [0] or its simpler alternative Branca [1].
JWT/JWS/JWE are classic examples of bad standards that the industry has chosen to adopt because everyone else is using it. It is a downgrade in terms of usability, cryptography and even in some cases performance. As for sessions, just don't even think about using it with that.
Just use PASETO [0] or Branca [1] tokens which are clearly both actively worked on secure alternatives to JWT which make it harder to shoot yourself in the foot with usability.
[0] https://paseto.io https://paseto.io
[1] https://branca.io https://branca.io