The JWT (JSON Web Token) implementation library written in TypeScript, for Node.js.
By now, this library only supports JWT with JWS (JSON Web Signature).
npm i @litert/jwt --save-
✔️ All mainly signing JWA algorithms are supported。
RSA HMAC ECDSA EdDSA ML-DSA ML-DSA only supported in Node.js v24.6.0 or newer.
-
✔️ Signing and verifying JWTs
There are two kinds of APIs for signing and verifying JWTs:
-
Core APIs
-
Sign and generate a JWT string directly.
-
Parse a JWT string, without verifying it.
-
-
Managed APIs
-
A builder class for signing and generating JWTs, providing rich methods to customize the JWT contents.
-
A verifier class for parsing and verifying JWTs.
-
-
- Node.js v18.x (Or newer)
- TypeScript v5.1.x (Or newer)
This library is published under Apache-2.0 license.