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

jose

jose is a 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.

Sponsor

<picture> <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/panva/jose/HEAD/sponsor/Auth0byOkta_dark.png"> <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/panva/jose/HEAD/sponsor/Auth0byOkta_light.png"> Auth0 by Okta </picture>

If you want to quickly add JWT authentication to JavaScript apps, feel free to check out Auth0's JavaScript SDK and free plan. Create an Auth0 account; it's free!

???? 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].

Documentation

jose is distributed via npmjs.com, jsr.io, jsdelivr.com, and github.com.

example ESM import[^cjs]

import * as jose from '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:

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 ⭐ Runtime and Module type
v6.x Security Policy Universal[^universal] ESM[^cjs]
v5.x Security Policy Universal[^universal] CJS + ESM
v4.x Security Policy Universal[^universal] CJS + ESM
v2.x Security Policy Node.js CJS

Specifications

<summary>Details</summary>

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

[^cjs]: CJS style let jose = require('jose') is possible in Node.js versions where the require(esm) feature is enabled by default (^20.19.0 || ^22.12.0 || >= 23.0.0).

[^universal]: Assumes runtime support of WebCryptoAPI and Fetch API

Current Tags

  • 6.2.2                                ...           latest (23 days ago)

235 Versions

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

Copyright 2013 - present © cnpmjs.org | Home |