5.9.6 • Published 1 month ago

jose v5.9.6

Weekly downloads
402,969
License
MIT
Repository
github
Last release
1 month ago

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.

Sponsor

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

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

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

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 in jose have been tested using test vectors from their respective specifications as well as RFC7520.

@ape-framework/server@thorswap-lib/hdwallet-native-vault@spur.us/monocle-express@decentrl/ssi-utils@atomist/sdm@saasxx/oauth2-josehbbsvrcorenode-access-token-validationnode-lambda-oauth2-jwt-jwks-authorizercqfluenttokens-express@carlosk/dotenv-encryptsecurity-handlersslm_cdk@jchartrand/sign-and-verify-baseshaheryarnode@hyperspaceinc/next-authaccess-token-handlersericraj-auth0-nextjsrylands-starterprefills-de-apistackbit-dev-playground@trustcerts/vc-create@trustcerts/vc-verifycreate-stackbit-dev-playgroundcreate-stackbit-playgroundclient-contactit-crypto@liquicode/lib-server-kit@infinitebrahmanuniverse/nolb-jos@puyodead1/next-auth@samsquatch/dooly-componentsgigya-client-node@authraa/corefirebase-auth-cfworkersas212-postman-runtime-json-commentjose-node-gdp-bombastis@everything-registry/sub-chunk-1968@itpropro/nuxt-oidc-authnbrc-josedid-generatorasurion-hub-backend@skaldebane/livekit-server-sdk@fleekxyz/auth@workos-inc/nextjsnuxt-oidc-ssr-authvht-automations-sdknineid-core@surflux-studio/restfultbc-apit1p-api-authorizesymblight-fastify-oauth2-jwtsymblight-node-oauth2-jwt-bearersveltekit-oauthsveltekit-openid-connectwhitenose-projectwaltid-sd-jwtweb-auth-libraryweb-extwdpayweb-oidcwebapputils-dsweb3pawwezt-express-appworkos-inc-esmworker-apollo-serverworker-auth-providersxal-nodexal-node-forkwibuwhispergridwhip-sdk-reactxhyper-plugin-authsa-node-my-info-sgsgnm-neo4j-graphqlshlinkerserverless-offline-tempserverless-offline-reasintserverless-offline-hot-reloadserverless-offline-imartinezsanction-commonsansction-commonrest-easy-lokirest-express-jwtremix-auth-totprigelsdksupersaas-jwt-authsupertokens-nodesuna-authstorekit-config-loaderstandup-and-prosper-sdkspid-cie-oidcspiral-sysspreadsheet-formattersenscritique-graphql-apirte-service-librsa-keygen-jwkssecure-biometric-interface-integratorsecure-biometric-interface-integrator1roninsdk
5.9.6

1 month ago

5.9.5

1 month ago

5.8.0

3 months ago

5.9.4

1 month ago

5.9.3

2 months ago

5.9.2

2 months ago

5.9.1

2 months ago

5.9.0

2 months ago

4.15.6

5 months ago

4.15.7

5 months ago

4.15.8

5 months ago

4.15.9

5 months ago

5.4.1

5 months ago

5.4.0

6 months ago

5.5.0

5 months ago

5.6.3

5 months ago

5.6.2

5 months ago

5.6.1

5 months ago

5.6.0

5 months ago

5.7.0

3 months ago

5.3.0

7 months ago

5.2.4

8 months ago

5.2.3

9 months ago

4.15.5

9 months ago

2.0.7

9 months ago

5.2.2

9 months ago

5.2.1

10 months ago

5.2.0

11 months ago

5.0.2

1 year ago

5.1.3

12 months ago

5.1.2

12 months ago

5.1.1

1 year ago

5.1.0

1 year ago

5.0.1

1 year ago

5.0.0

1 year ago

4.15.4

1 year ago

4.15.0

1 year ago

4.15.1

1 year ago

4.15.2

1 year ago

4.15.3

1 year ago

4.14.5

1 year ago

4.14.6

1 year ago

4.14.1

2 years ago

4.14.2

2 years ago

4.14.3

2 years ago

4.14.4

2 years ago

4.14.0

2 years ago

4.13.2

2 years ago

4.13.0

2 years ago

4.13.1

2 years ago

4.12.0

2 years ago

4.12.1

2 years ago

4.12.2

2 years ago

4.11.4

2 years ago

4.11.3

2 years ago

4.10.1

2 years ago

4.10.2

2 years ago

4.10.3

2 years ago

4.10.4

2 years ago

4.11.0

2 years ago

4.11.1

2 years ago

4.11.2

2 years ago

3.20.4

2 years ago

4.9.3

2 years ago

4.9.2

2 years ago

4.9.1

2 years ago

2.0.6

2 years ago

4.10.0

2 years ago

1.28.2

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.4.0

3 years ago

4.3.9

3 years ago

4.3.8

3 years ago

4.5.0

3 years ago

4.5.1

3 years ago

4.3.2

3 years ago

4.3.4

3 years ago

4.3.3

3 years ago

4.3.0

3 years ago

4.3.6

3 years ago

4.3.5

3 years ago

4.3.7

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

3.20.3

3 years ago

4.0.4

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

4.0.3

3 years ago

4.0.2

3 years ago

4.1.0

3 years ago

4.1.1

3 years ago

3.20.0

3 years ago

3.20.2

3 years ago

3.20.1

3 years ago

3.19.0

3 years ago

3.18.0

3 years ago

3.17.0

3 years ago

3.16.1

3 years ago

3.16.0

3 years ago

3.15.5

3 years ago

3.15.0

3 years ago

3.15.2

3 years ago

3.15.1

3 years ago

3.15.4

3 years ago

3.15.3

3 years ago

3.14.4

3 years ago

3.14.1

3 years ago

3.14.3

3 years ago

3.14.2

3 years ago

3.14.0

3 years ago

3.13.0

3 years ago

3.12.3

3 years ago

3.12.2

4 years ago

3.12.1

4 years ago

3.12.0

4 years ago

3.11.6

4 years ago

3.11.5

4 years ago

2.0.5

4 years ago

3.11.4

4 years ago

1.28.1

4 years ago

3.11.3

4 years ago

3.11.2

4 years ago

3.11.1

4 years ago

3.11.0

4 years ago

3.10.0

4 years ago

3.9.0

4 years ago

3.8.0

4 years ago

3.7.1

4 years ago

3.7.0

4 years ago

3.6.2

4 years ago

3.6.1

4 years ago

3.6.0

4 years ago

3.5.4

4 years ago

3.5.3

4 years ago

2.0.4

4 years ago

3.5.2

4 years ago

3.5.1

4 years ago

3.5.0

4 years ago

3.4.0

4 years ago

3.3.2

4 years ago

3.3.1

4 years ago

3.3.0

4 years ago

3.2.0

4 years ago

3.1.3

4 years ago

3.1.2

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

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

4 years ago

1.27.3

4 years ago

1.27.2

4 years ago

1.27.1

4 years ago

1.27.0

5 years ago

1.26.1

5 years ago

1.26.0

5 years ago

1.25.1

5 years ago

1.25.2

5 years ago

1.25.0

5 years ago

1.24.1

5 years ago

1.24.0

5 years ago

1.23.0

5 years ago

1.22.2

5 years ago

1.22.1

5 years ago

1.22.0

5 years ago

1.21.1

5 years ago

1.21.0

5 years ago

1.20.0

5 years ago

1.19.0

5 years ago

1.18.2

5 years ago

1.18.1

5 years ago

1.18.0

5 years ago

1.17.2

5 years ago

1.17.1

5 years ago

1.17.0

5 years ago

1.16.2

5 years ago

1.16.1

5 years ago

1.16.0

5 years ago

1.15.1

5 years ago

1.15.0

5 years ago

1.14.0

5 years ago

1.13.0

5 years ago

1.12.1

5 years ago

1.12.0

5 years ago

1.11.0

5 years ago

1.10.2

5 years ago

1.10.1

5 years ago

1.10.0

5 years ago

1.9.2

5 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago

0.0.0

11 years ago