jose
JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes
Last updated 6 months ago by panva .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install jose 
SYNC missed versions from official npm registry.

jose

jose is JavaScript module for JSON Object Signing and Encryption, providing support for JSON Web Tokens (JWT), JSON Web Signature (JWS), JSON Web Encryption (JWE), JSON Web Key (JWK), JSON Web Key Set (JWKS), and more. The module is designed to work across various Web-interoperable runtimes including Node.js, browsers, Cloudflare Workers, Deno, Bun, and others.

💗 Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.

Dependencies: 0

jose has no dependencies and it exports tree-shakeable ESM. CJS is also supported.

Documentation

jose is distributed via npmjs.com, deno.land/x, cdnjs.com, jsdelivr.com, and github.com.

example ESM import

import * as jose from 'jose'

example CJS require

const jose = require('jose')

JSON Web Tokens (JWT)

The jose module supports JSON Web Tokens (JWT) and provides functionality for signing and verifying tokens, as well as their JWT Claims Set validation.

Encrypted JSON Web Tokens

The jose module supports encrypted JSON Web Tokens and provides functionality for encrypting and decrypting tokens, as well as their JWT Claims Set validation.

Key Utilities

The jose module supports importing, exporting, and generating keys and secrets in various formats, including PEM formats like SPKI, X.509 certificate, and PKCS #8, as well as JSON Web Key (JWK).

JSON Web Signature (JWS)

The jose module supports signing and verification of JWS messages with arbitrary payloads in Compact, Flattened JSON, and General JSON serialization syntaxes.

JSON Web Encryption (JWE)

The jose module supports encryption and decryption of JWE messages with arbitrary plaintext in Compact, Flattened JSON, and General JSON serialization syntaxes.

Other

The following are additional features and utilities provided by the jose module:

Implemented specifications

The jose module implements the following specifications:

  • JSON Web Signature (JWS) - RFC7515
  • JSON Web Encryption (JWE) - RFC7516
  • JSON Web Key (JWK) - RFC7517
  • JSON Web Algorithms (JWA) - RFC7518
  • JSON Web Token (JWT) - RFC7519
  • JSON Web Key Thumbprint - RFC7638
  • JSON Web Key Thumbprint URI - RFC9278
  • JWS Unencoded Payload Option - RFC7797
  • CFRG Elliptic Curve ECDH and Signatures - RFC8037
  • secp256k1 EC Key curve support - RFC8812

The algorithm implementations have been tested using test vectors from their respective specifications as well as RFC7520.

Supported Runtimes

The jose module is compatible with JavaScript runtimes that support the utilized Web API globals and standard built-in objects or are Node.js.

The following runtimes are supported (this is not an exhaustive list):

Please note that certain algorithms may not be available depending on the runtime used. You can find a list of available algorithms for each runtime in the specific issue links provided above.

Supported Versions

Version Security Fixes 🔑 Other Bug Fixes 🐞 New Features ⭐
v5.x
v4.x
v2.x

Current Tags

  • 5.6.3                                ...           latest (4 months ago)
  • 4.15.9                                ...           previous (4 months ago)

204 Versions

  • 5.6.3                                ...           4 months ago
  • 4.15.9                                ...           4 months ago
  • 4.15.8                                ...           4 months ago
  • 5.6.2                                ...           5 months ago
  • 5.6.1                                ...           5 months ago
  • 5.6.0                                ...           5 months ago
  • 5.5.0                                ...           5 months ago
  • 5.4.1                                ...           5 months ago
  • 4.15.7                                ...           5 months ago
  • 4.15.6                                ...           5 months ago
  • 5.4.0                                ...           5 months ago
  • 5.3.0                                ...           6 months ago
  • 5.2.4                                ...           7 months ago
  • 5.2.3                                ...           8 months ago
  • 4.15.5                                ...           8 months ago
  • 2.0.7                                ...           8 months ago
  • 5.2.2                                ...           9 months ago
  • 5.2.1                                ...           9 months ago
  • 5.2.0                                ...           a year ago
  • 5.1.3                                ...           a year ago
  • 5.1.2                                ...           a year ago
  • 5.1.1                                ...           a year ago
  • 5.1.0                                ...           a year ago
  • 5.0.2                                ...           a year ago
  • 5.0.1                                ...           a year ago
  • 5.0.0                                ...           a year ago
  • 4.15.4                                ...           a year ago
  • 4.15.3                                ...           a year ago
  • 4.15.2                                ...           a year ago
  • 4.15.1                                ...           a year ago
  • 4.15.0                                ...           a year ago
  • 4.14.6                                ...           a year ago
  • 4.14.5                                ...           a year ago
  • 4.14.4                                ...           2 years ago
  • 4.14.3                                ...           2 years ago
  • 4.14.2                                ...           2 years ago
  • 4.14.1                                ...           2 years ago
  • 4.14.0                                ...           2 years ago
  • 4.13.2                                ...           2 years ago
  • 4.13.1                                ...           2 years ago
  • 4.13.0                                ...           2 years ago
  • 4.12.2                                ...           2 years ago
  • 4.12.1                                ...           2 years ago
  • 4.12.0                                ...           2 years ago
  • 4.11.4                                ...           2 years ago
  • 4.11.3                                ...           2 years ago
  • 4.11.2                                ...           2 years ago
  • 4.11.1                                ...           2 years ago
  • 4.11.0                                ...           2 years ago
  • 4.10.4                                ...           2 years ago
  • 4.10.3                                ...           2 years ago
  • 4.10.2                                ...           2 years ago
  • 4.10.1                                ...           2 years ago
  • 4.10.0                                ...           2 years ago
  • 4.9.3                                ...           2 years ago
  • 4.9.2                                ...           2 years ago
  • 3.20.4 [deprecated]           ...           2 years ago
  • 2.0.6                                ...           2 years ago
  • 1.28.2 [deprecated]           ...           2 years ago
  • 4.9.1                                ...           2 years ago
  • 4.9.0                                ...           2 years ago
  • 4.8.3                                ...           2 years ago
  • 4.8.1                                ...           3 years ago
  • 4.8.0                                ...           3 years ago
  • 4.7.0                                ...           3 years ago
  • 4.6.2                                ...           3 years ago
  • 4.6.1                                ...           3 years ago
  • 4.6.0                                ...           3 years ago
  • 4.5.3                                ...           3 years ago
  • 4.5.2                                ...           3 years ago
  • 4.5.1                                ...           3 years ago
  • 4.5.0                                ...           3 years ago
  • 4.4.0                                ...           3 years ago
  • 4.3.9                                ...           3 years ago
  • 4.3.8                                ...           3 years ago
  • 4.3.7                                ...           3 years ago
  • 4.3.6                                ...           3 years ago
  • 4.3.5                                ...           3 years ago
  • 4.3.4                                ...           3 years ago
  • 4.3.3                                ...           3 years ago
  • 4.3.2                                ...           3 years ago
  • 4.3.0                                ...           3 years ago
  • 4.2.1                                ...           3 years ago
  • 4.2.0                                ...           3 years ago
  • 4.1.5                                ...           3 years ago
  • 4.1.4                                ...           3 years ago
  • 4.1.3                                ...           3 years ago
  • 4.1.2                                ...           3 years ago
  • 4.1.1                                ...           3 years ago
  • 4.1.0                                ...           3 years ago
  • 4.0.4                                ...           3 years ago
  • 4.0.3                                ...           3 years ago
  • 4.0.2                                ...           3 years ago
  • 4.0.1                                ...           3 years ago
  • 4.0.0                                ...           3 years ago
  • 3.20.3 [deprecated]           ...           3 years ago
  • 3.20.2 [deprecated]           ...           3 years ago
  • 3.20.1 [deprecated]           ...           3 years ago
  • 3.20.0 [deprecated]           ...           3 years ago
  • 3.19.0 [deprecated]           ...           3 years ago
  • 3.18.0 [deprecated]           ...           3 years ago
  • 3.17.0 [deprecated]           ...           3 years ago
  • 3.16.1 [deprecated]           ...           3 years ago
  • 3.16.0 [deprecated]           ...           3 years ago
  • 3.15.5 [deprecated]           ...           3 years ago
  • 3.15.4 [deprecated]           ...           3 years ago
  • 3.15.3 [deprecated]           ...           3 years ago
  • 3.15.2 [deprecated]           ...           3 years ago
  • 3.15.1 [deprecated]           ...           3 years ago
  • 3.15.0 [deprecated]           ...           3 years ago
  • 3.14.4 [deprecated]           ...           3 years ago
  • 3.14.3 [deprecated]           ...           3 years ago
  • 3.14.2 [deprecated]           ...           3 years ago
  • 3.14.1 [deprecated]           ...           3 years ago
  • 3.14.0 [deprecated]           ...           3 years ago
  • 3.13.0 [deprecated]           ...           3 years ago
  • 3.12.3 [deprecated]           ...           3 years ago
  • 3.12.2 [deprecated]           ...           3 years ago
  • 3.12.1 [deprecated]           ...           4 years ago
  • 3.12.0 [deprecated]           ...           4 years ago
  • 3.11.6 [deprecated]           ...           4 years ago
  • 3.11.5 [deprecated]           ...           4 years ago
  • 3.11.4 [deprecated]           ...           4 years ago
  • 1.28.1 [deprecated]           ...           4 years ago
  • 2.0.5                                ...           4 years ago
  • 3.11.3 [deprecated]           ...           4 years ago
  • 3.11.2 [deprecated]           ...           4 years ago
  • 3.11.1 [deprecated]           ...           4 years ago
  • 3.11.0 [deprecated]           ...           4 years ago
  • 3.10.0 [deprecated]           ...           4 years ago
  • 3.9.0 [deprecated]           ...           4 years ago
  • 3.8.0 [deprecated]           ...           4 years ago
  • 3.7.1 [deprecated]           ...           4 years ago
  • 3.7.0 [deprecated]           ...           4 years ago
  • 3.6.2 [deprecated]           ...           4 years ago
  • 3.6.1 [deprecated]           ...           4 years ago
  • 3.6.0 [deprecated]           ...           4 years ago
  • 3.5.4 [deprecated]           ...           4 years ago
  • 3.5.3 [deprecated]           ...           4 years ago
  • 3.5.2 [deprecated]           ...           4 years ago
  • 2.0.4                                ...           4 years ago
  • 3.5.1-experimental [deprecated]           ...           4 years ago
  • 3.5.1 [deprecated]           ...           4 years ago
  • 3.5.0 [deprecated]           ...           4 years ago
  • 3.4.0 [deprecated]           ...           4 years ago
  • 3.3.2 [deprecated]           ...           4 years ago
  • 3.3.1 [deprecated]           ...           4 years ago
  • 3.3.0 [deprecated]           ...           4 years ago
  • 3.2.0 [deprecated]           ...           4 years ago
  • 3.1.3 [deprecated]           ...           4 years ago
  • 3.1.2 [deprecated]           ...           4 years ago
  • 3.1.1 [deprecated]           ...           4 years ago
  • 3.1.0 [deprecated]           ...           4 years ago
  • 3.0.2 [deprecated]           ...           4 years ago
  • 3.0.1 [deprecated]           ...           4 years ago
  • 3.0.0 [deprecated]           ...           4 years ago
  • 2.0.3                                ...           4 years ago
  • 2.0.2                                ...           4 years ago
  • 2.0.1                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.28.0 [deprecated]           ...           4 years ago
  • 1.27.3 [deprecated]           ...           4 years ago
  • 1.27.2 [deprecated]           ...           4 years ago
  • 1.27.1 [deprecated]           ...           4 years ago
  • 1.27.0 [deprecated]           ...           5 years ago
  • 1.26.1 [deprecated]           ...           5 years ago
  • 1.26.0 [deprecated]           ...           5 years ago
  • 1.25.2 [deprecated]           ...           5 years ago
  • 1.25.1 [deprecated]           ...           5 years ago
  • 1.25.0 [deprecated]           ...           5 years ago
  • 1.24.1 [deprecated]           ...           5 years ago
  • 1.24.0 [deprecated]           ...           5 years ago
  • 1.23.0 [deprecated]           ...           5 years ago
  • 1.22.2 [deprecated]           ...           5 years ago
  • 1.22.1 [deprecated]           ...           5 years ago
  • 1.22.0 [deprecated]           ...           5 years ago
  • 1.21.1 [deprecated]           ...           5 years ago
  • 1.21.0 [deprecated]           ...           5 years ago
  • 1.20.0 [deprecated]           ...           5 years ago
  • 1.19.0 [deprecated]           ...           5 years ago
  • 1.18.2 [deprecated]           ...           5 years ago
  • 1.18.1 [deprecated]           ...           5 years ago
  • 1.18.0 [deprecated]           ...           5 years ago
  • 1.17.2 [deprecated]           ...           5 years ago
  • 1.17.1 [deprecated]           ...           5 years ago
  • 1.17.0 [deprecated]           ...           5 years ago
  • 1.16.2 [deprecated]           ...           5 years ago
  • 1.16.1 [deprecated]           ...           5 years ago
  • 1.16.0 [deprecated]           ...           5 years ago
  • 1.15.1 [deprecated]           ...           5 years ago
  • 1.15.0 [deprecated]           ...           5 years ago
  • 1.14.0 [deprecated]           ...           5 years ago
  • 1.13.0 [deprecated]           ...           5 years ago
  • 1.12.1 [deprecated]           ...           5 years ago
  • 1.12.0 [deprecated]           ...           5 years ago
  • 1.11.0 [deprecated]           ...           5 years ago
  • 1.10.2 [deprecated]           ...           5 years ago
  • 1.10.1 [deprecated]           ...           5 years ago
  • 1.10.0 [deprecated]           ...           5 years ago
  • 1.9.2 [deprecated]           ...           5 years ago
  • 0.3.2 [deprecated]           ...           9 years ago
  • 0.3.1 [deprecated]           ...           9 years ago
  • 0.2.0 [deprecated]           ...           9 years ago
  • 0.1.0 [deprecated]           ...           9 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE