@litert/jwt
v0.1.3
Published
The JWT (JSON Web Token) implementation library written in TypeScript
Readme
LiteRT/JWT
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).
Installation
npm i @litert/jwt --saveFeatures
✔️ 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.
Requirements
- Node.js v18.x (Or newer)
- TypeScript v5.1.x (Or newer)
Documents
License
This library is published under Apache-2.0 license.
