4 ms·
Might I suggest Paseto (https://paseto.io/ https://paseto.io/) instead of writing it yourself - it solves a lot of the headaches of JWT. Signing and encryption
by miunau 3y ago
Might I suggest Paseto (https://paseto.io/ https://paseto.io/) instead of writing it yourself - it solves a lot of the headaches of JWT. Signing and encryption are two different things that require two different sets of keys, so you can't mess it up.
(Full disclosure, I've written one implementation: https://github.com/auth70/paseto-ts https://github.com/auth70/paseto-ts)
- Zamicol 3y agoAnd shameless plug for another alternative, Coze: https://github.com/Cyphrme/Coze https://github.com/Cyphrme/Coze