Skip to content

litert/jwt.js

Repository files navigation

LiteRT/JWT

Strict TypeScript Checked npm version License GitHub issues GitHub Releases

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 --save

Features

  • ✔️ All mainly signing JWA algorithms are supported。

    RSA HMAC ECDSA EdDSA ML-DSA
    RS256 HS256 ES256 Ed25519 ML-DSA-44
    RS384 HS384 ES384 Ed448 ML-DSA-65
    RS512 HS512 ES512 ML-DSA-87
    PS256 ES256K
    PS384
    PS512

    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:

Requirements

  • Node.js v18.x (Or newer)
  • TypeScript v5.1.x (Or newer)

Documents

License

This library is published under Apache-2.0 license.