JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes. Use when: JWT Claims Set Validation & Signature Verification using the `jwtVerify` function; Using a remote JSON Web Key Set (JWKS); Using a local JSON Web Key Set (JWKS). NOT for: timezone database hosting; building calendar UIs.
Install
npx skillscat add yusenthebot/skills-pack/jose Install via the SkillsCat registry.
jose
Overview
JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes. # 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.
Installation
npm install joseCore API / Usage
import * as jose from 'jose'Common Patterns
Key Features
- JWT Claims Set Validation & Signature Verification using the
jwtVerifyfunction - Using a remote JSON Web Key Set (JWKS)
- Using a local JSON Web Key Set (JWKS)
- Signing using the
SignJWTclass
Configuration
See the official documentation for configuration options and advanced settings.
Tips & Gotchas
- Supports both ESM (
import) and CommonJS (require()). - Works in both Node.js and browser environments.