Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jose

Package Overview
Dependencies
Maintainers
0
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jose - npm Package Compare versions

Comparing version 5.9.4 to 5.9.5

2

dist/browser/jwks/remote.js

@@ -13,3 +13,3 @@ import fetchJwks from '../runtime/fetch_jwks.js';

const NAME = 'jose';
const VERSION = 'v5.9.4';
const VERSION = 'v5.9.5';
USER_AGENT = `${NAME}/${VERSION}`;

@@ -16,0 +16,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.compactDecrypt = void 0;
exports.compactDecrypt = compactDecrypt;
const decrypt_js_1 = require("../flattened/decrypt.js");

@@ -31,2 +31,1 @@ const errors_js_1 = require("../../util/errors.js");

}
exports.compactDecrypt = compactDecrypt;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.flattenedDecrypt = void 0;
exports.flattenedDecrypt = flattenedDecrypt;
const base64url_js_1 = require("../../runtime/base64url.js");

@@ -165,2 +165,1 @@ const decrypt_js_1 = require("../../runtime/decrypt.js");

}
exports.flattenedDecrypt = flattenedDecrypt;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.generalDecrypt = void 0;
exports.generalDecrypt = generalDecrypt;
const decrypt_js_1 = require("../flattened/decrypt.js");

@@ -35,2 +35,1 @@ const errors_js_1 = require("../../util/errors.js");

}
exports.generalDecrypt = generalDecrypt;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EmbeddedJWK = void 0;
exports.EmbeddedJWK = EmbeddedJWK;
const import_js_1 = require("../key/import.js");

@@ -21,2 +21,1 @@ const is_object_js_1 = require("../lib/is_object.js");

}
exports.EmbeddedJWK = EmbeddedJWK;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.calculateJwkThumbprintUri = exports.calculateJwkThumbprint = void 0;
exports.calculateJwkThumbprint = calculateJwkThumbprint;
exports.calculateJwkThumbprintUri = calculateJwkThumbprintUri;
const digest_js_1 = require("../runtime/digest.js");

@@ -52,3 +53,2 @@ const base64url_js_1 = require("../runtime/base64url.js");

}
exports.calculateJwkThumbprint = calculateJwkThumbprint;
async function calculateJwkThumbprintUri(jwk, digestAlgorithm) {

@@ -59,2 +59,1 @@ digestAlgorithm ??= 'sha256';

}
exports.calculateJwkThumbprintUri = calculateJwkThumbprintUri;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createLocalJWKSet = void 0;
exports.createLocalJWKSet = createLocalJWKSet;
const import_js_1 = require("../key/import.js");

@@ -126,2 +126,1 @@ const errors_js_1 = require("../util/errors.js");

}
exports.createLocalJWKSet = createLocalJWKSet;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.experimental_jwksCache = exports.createRemoteJWKSet = exports.jwksCache = void 0;
exports.experimental_jwksCache = exports.jwksCache = void 0;
exports.createRemoteJWKSet = createRemoteJWKSet;
const fetch_jwks_js_1 = require("../runtime/fetch_jwks.js");

@@ -16,3 +17,3 @@ const errors_js_1 = require("../util/errors.js");

const NAME = 'jose';
const VERSION = 'v5.9.4';
const VERSION = 'v5.9.5';
USER_AGENT = `${NAME}/${VERSION}`;

@@ -152,3 +153,2 @@ }

}
exports.createRemoteJWKSet = createRemoteJWKSet;
exports.experimental_jwksCache = exports.jwksCache;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.compactVerify = void 0;
exports.compactVerify = compactVerify;
const verify_js_1 = require("../flattened/verify.js");

@@ -25,2 +25,1 @@ const errors_js_1 = require("../../util/errors.js");

}
exports.compactVerify = compactVerify;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.flattenedVerify = void 0;
exports.flattenedVerify = flattenedVerify;
const base64url_js_1 = require("../../runtime/base64url.js");

@@ -126,2 +126,1 @@ const verify_js_1 = require("../../runtime/verify.js");

}
exports.flattenedVerify = flattenedVerify;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.generalVerify = void 0;
exports.generalVerify = generalVerify;
const verify_js_1 = require("../flattened/verify.js");

@@ -28,2 +28,1 @@ const errors_js_1 = require("../../util/errors.js");

}
exports.generalVerify = generalVerify;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.jwtDecrypt = void 0;
exports.jwtDecrypt = jwtDecrypt;
const decrypt_js_1 = require("../jwe/compact/decrypt.js");

@@ -27,2 +27,1 @@ const jwt_claims_set_js_1 = require("../lib/jwt_claims_set.js");

}
exports.jwtDecrypt = jwtDecrypt;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.jwtVerify = void 0;
exports.jwtVerify = jwtVerify;
const verify_js_1 = require("../jws/compact/verify.js");

@@ -19,2 +19,1 @@ const jwt_claims_set_js_1 = require("../lib/jwt_claims_set.js");

}
exports.jwtVerify = jwtVerify;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.exportJWK = exports.exportPKCS8 = exports.exportSPKI = void 0;
exports.exportSPKI = exportSPKI;
exports.exportPKCS8 = exportPKCS8;
exports.exportJWK = exportJWK;
const asn1_js_1 = require("../runtime/asn1.js");

@@ -10,10 +12,7 @@ const asn1_js_2 = require("../runtime/asn1.js");

}
exports.exportSPKI = exportSPKI;
async function exportPKCS8(key) {
return (0, asn1_js_2.toPKCS8)(key);
}
exports.exportPKCS8 = exportPKCS8;
async function exportJWK(key) {
return (0, key_to_jwk_js_1.default)(key);
}
exports.exportJWK = exportJWK;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.generateKeyPair = void 0;
exports.generateKeyPair = generateKeyPair;
const generate_js_1 = require("../runtime/generate.js");

@@ -8,2 +8,1 @@ async function generateKeyPair(alg, options) {

}
exports.generateKeyPair = generateKeyPair;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.generateSecret = void 0;
exports.generateSecret = generateSecret;
const generate_js_1 = require("../runtime/generate.js");

@@ -8,2 +8,1 @@ async function generateSecret(alg, options) {

}
exports.generateSecret = generateSecret;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.importJWK = exports.importPKCS8 = exports.importX509 = exports.importSPKI = void 0;
exports.importSPKI = importSPKI;
exports.importX509 = importX509;
exports.importPKCS8 = importPKCS8;
exports.importJWK = importJWK;
const base64url_js_1 = require("../runtime/base64url.js");

@@ -15,3 +18,2 @@ const asn1_js_1 = require("../runtime/asn1.js");

}
exports.importSPKI = importSPKI;
async function importX509(x509, alg, options) {

@@ -23,3 +25,2 @@ if (typeof x509 !== 'string' || x509.indexOf('-----BEGIN CERTIFICATE-----') !== 0) {

}
exports.importX509 = importX509;
async function importPKCS8(pkcs8, alg, options) {

@@ -31,3 +32,2 @@ if (typeof pkcs8 !== 'string' || pkcs8.indexOf('-----BEGIN PRIVATE KEY-----') !== 0) {

}
exports.importPKCS8 = importPKCS8;
async function importJWK(jwk, alg) {

@@ -55,2 +55,1 @@ if (!(0, is_object_js_1.default)(jwk)) {

}
exports.importJWK = importJWK;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.unwrap = exports.wrap = void 0;
exports.wrap = wrap;
exports.unwrap = unwrap;
const encrypt_js_1 = require("../runtime/encrypt.js");

@@ -16,3 +17,2 @@ const decrypt_js_1 = require("../runtime/decrypt.js");

}
exports.wrap = wrap;
async function unwrap(alg, key, encryptedKey, iv, tag) {

@@ -22,2 +22,1 @@ const jweAlgorithm = alg.slice(0, 7);

}
exports.unwrap = unwrap;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.concatKdf = exports.lengthAndInput = exports.uint32be = exports.uint64be = exports.p2s = exports.concat = exports.decoder = exports.encoder = void 0;
exports.decoder = exports.encoder = void 0;
exports.concat = concat;
exports.p2s = p2s;
exports.uint64be = uint64be;
exports.uint32be = uint32be;
exports.lengthAndInput = lengthAndInput;
exports.concatKdf = concatKdf;
const digest_js_1 = require("../runtime/digest.js");

@@ -18,7 +24,5 @@ exports.encoder = new TextEncoder();

}
exports.concat = concat;
function p2s(alg, p2sInput) {
return concat(exports.encoder.encode(alg), new Uint8Array([0]), p2sInput);
}
exports.p2s = p2s;
function writeUInt32BE(buf, value, offset) {

@@ -38,3 +42,2 @@ if (value < 0 || value >= MAX_INT32) {

}
exports.uint64be = uint64be;
function uint32be(value) {

@@ -45,7 +48,5 @@ const buf = new Uint8Array(4);

}
exports.uint32be = uint32be;
function lengthAndInput(input) {
return concat(uint32be(input.length), input);
}
exports.lengthAndInput = lengthAndInput;
async function concatKdf(secret, bits, value) {

@@ -63,2 +64,1 @@ const iterations = Math.ceil((bits >> 3) / 32);

}
exports.concatKdf = concatKdf;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.bitLength = void 0;
exports.bitLength = bitLength;
const errors_js_1 = require("../util/errors.js");

@@ -23,3 +23,2 @@ const random_js_1 = require("../runtime/random.js");

}
exports.bitLength = bitLength;
exports.default = (alg) => (0, random_js_1.default)(new Uint8Array(bitLength(alg) >> 3));
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = checkP2s;
const errors_js_1 = require("../util/errors.js");

@@ -9,2 +10,1 @@ function checkP2s(p2s) {

}
exports.default = checkP2s;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkEncCryptoKey = exports.checkSigCryptoKey = void 0;
exports.checkSigCryptoKey = checkSigCryptoKey;
exports.checkEncCryptoKey = checkEncCryptoKey;
function unusable(name, prop = 'algorithm.name') {

@@ -98,3 +99,2 @@ return new TypeError(`CryptoKey does not support this operation, its ${prop} must be ${name}`);

}
exports.checkSigCryptoKey = checkSigCryptoKey;
function checkEncCryptoKey(key, alg, ...usages) {

@@ -158,2 +158,1 @@ switch (alg) {

}
exports.checkEncCryptoKey = checkEncCryptoKey;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.withAlg = void 0;
exports.withAlg = withAlg;
function message(msg, actual, ...types) {

@@ -35,2 +35,1 @@ types = types.filter(Boolean);

}
exports.withAlg = withAlg;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isSecretJWK = exports.isPublicJWK = exports.isPrivateJWK = exports.isJWK = void 0;
exports.isJWK = isJWK;
exports.isPrivateJWK = isPrivateJWK;
exports.isPublicJWK = isPublicJWK;
exports.isSecretJWK = isSecretJWK;
const is_object_js_1 = require("./is_object.js");

@@ -8,14 +11,10 @@ function isJWK(key) {

}
exports.isJWK = isJWK;
function isPrivateJWK(key) {
return key.kty !== 'oct' && typeof key.d === 'string';
}
exports.isPrivateJWK = isPrivateJWK;
function isPublicJWK(key) {
return key.kty !== 'oct' && typeof key.d === 'undefined';
}
exports.isPublicJWK = isPublicJWK;
function isSecretJWK(key) {
return isJWK(key) && key.kty === 'oct' && typeof key.k === 'string';
}
exports.isSecretJWK = isSecretJWK;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = isObject;
function isObjectLike(value) {

@@ -19,2 +20,1 @@ return typeof value === 'object' && value !== null;

}
exports.default = isObject;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.bitLength = void 0;
exports.bitLength = bitLength;
const errors_js_1 = require("../util/errors.js");

@@ -23,3 +23,2 @@ const random_js_1 = require("../runtime/random.js");

}
exports.bitLength = bitLength;
exports.default = (alg) => (0, random_js_1.default)(new Uint8Array(bitLength(alg) >> 3));
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = cbcTag;
const node_crypto_1 = require("node:crypto");

@@ -11,2 +12,1 @@ const buffer_utils_js_1 = require("../lib/buffer_utils.js");

}
exports.default = cbcTag;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = dsaDigest;
const errors_js_1 = require("../util/errors.js");

@@ -25,2 +26,1 @@ function dsaDigest(alg) {

}
exports.default = dsaDigest;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ecdhAllowed = exports.generateEpk = exports.deriveKey = void 0;
exports.ecdhAllowed = void 0;
exports.deriveKey = deriveKey;
exports.generateEpk = generateEpk;
const node_crypto_1 = require("node:crypto");

@@ -42,3 +44,2 @@ const node_util_1 = require("node:util");

}
exports.deriveKey = deriveKey;
async function generateEpk(kee) {

@@ -69,4 +70,3 @@ let key;

}
exports.generateEpk = generateEpk;
const ecdhAllowed = (key) => ['P-256', 'P-384', 'P-521', 'X25519', 'X448'].includes((0, get_named_curve_js_1.default)(key));
exports.ecdhAllowed = ecdhAllowed;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.generateKeyPair = exports.generateSecret = void 0;
exports.generateSecret = generateSecret;
exports.generateKeyPair = generateKeyPair;
const node_crypto_1 = require("node:crypto");

@@ -36,3 +37,2 @@ const node_util_1 = require("node:util");

}
exports.generateSecret = generateSecret;
async function generateKeyPair(alg, options) {

@@ -103,2 +103,1 @@ switch (alg) {

}
exports.generateKeyPair = generateKeyPair;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = getSignVerifyKey;
const node_crypto_1 = require("node:crypto");

@@ -31,2 +32,1 @@ const webcrypto_js_1 = require("./webcrypto.js");

}
exports.default = getSignVerifyKey;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = hmacDigest;
const errors_js_1 = require("../util/errors.js");

@@ -16,2 +17,1 @@ function hmacDigest(alg) {

}
exports.default = hmacDigest;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = keyForCrypto;
const node_crypto_1 = require("node:crypto");

@@ -106,2 +107,1 @@ const get_named_curve_js_1 = require("./get_named_curve.js");

}
exports.default = keyForCrypto;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.decodeJwt = void 0;
exports.decodeJwt = decodeJwt;
const base64url_js_1 = require("./base64url.js");

@@ -36,2 +36,1 @@ const buffer_utils_js_1 = require("../lib/buffer_utils.js");

}
exports.decodeJwt = decodeJwt;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.decodeProtectedHeader = void 0;
exports.decodeProtectedHeader = decodeProtectedHeader;
const base64url_js_1 = require("./base64url.js");

@@ -38,2 +38,1 @@ const buffer_utils_js_1 = require("../lib/buffer_utils.js");

}
exports.decodeProtectedHeader = decodeProtectedHeader;

@@ -13,3 +13,3 @@ import fetchJwks from '../runtime/fetch_jwks.js';

const NAME = 'jose';
const VERSION = 'v5.9.4';
const VERSION = 'v5.9.5';
USER_AGENT = `${NAME}/${VERSION}`;

@@ -16,0 +16,0 @@ }

{
"name": "jose",
"version": "5.9.4",
"version": "5.9.5",
"description": "JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes",

@@ -65,299 +65,239 @@ "keywords": [

"types": "./dist/types/index.d.ts",
"bun": "./dist/browser/index.js",
"deno": "./dist/browser/index.js",
"browser": "./dist/browser/index.js",
"worker": "./dist/browser/index.js",
"workerd": "./dist/browser/index.js",
"import": "./dist/node/esm/index.js",
"require": "./dist/node/cjs/index.js"
"node": {
"import": "./dist/node/esm/index.js",
"require": "./dist/node/cjs/index.js"
},
"default": "./dist/browser/index.js"
},
"./jwk/embedded": {
"types": "./dist/types/jwk/embedded.d.ts",
"bun": "./dist/browser/jwk/embedded.js",
"deno": "./dist/browser/jwk/embedded.js",
"browser": "./dist/browser/jwk/embedded.js",
"worker": "./dist/browser/jwk/embedded.js",
"workerd": "./dist/browser/jwk/embedded.js",
"import": "./dist/node/esm/jwk/embedded.js",
"require": "./dist/node/cjs/jwk/embedded.js"
"node": {
"import": "./dist/node/esm/jwk/embedded.js",
"require": "./dist/node/cjs/jwk/embedded.js"
},
"default": "./dist/browser/jwk/embedded.js"
},
"./jwk/thumbprint": {
"types": "./dist/types/jwk/thumbprint.d.ts",
"bun": "./dist/browser/jwk/thumbprint.js",
"deno": "./dist/browser/jwk/thumbprint.js",
"browser": "./dist/browser/jwk/thumbprint.js",
"worker": "./dist/browser/jwk/thumbprint.js",
"workerd": "./dist/browser/jwk/thumbprint.js",
"import": "./dist/node/esm/jwk/thumbprint.js",
"require": "./dist/node/cjs/jwk/thumbprint.js"
"node": {
"import": "./dist/node/esm/jwk/thumbprint.js",
"require": "./dist/node/cjs/jwk/thumbprint.js"
},
"default": "./dist/browser/jwk/thumbprint.js"
},
"./key/import": {
"types": "./dist/types/key/import.d.ts",
"bun": "./dist/browser/key/import.js",
"deno": "./dist/browser/key/import.js",
"browser": "./dist/browser/key/import.js",
"worker": "./dist/browser/key/import.js",
"workerd": "./dist/browser/key/import.js",
"import": "./dist/node/esm/key/import.js",
"require": "./dist/node/cjs/key/import.js"
"node": {
"import": "./dist/node/esm/key/import.js",
"require": "./dist/node/cjs/key/import.js"
},
"default": "./dist/browser/key/import.js"
},
"./key/export": {
"types": "./dist/types/key/export.d.ts",
"bun": "./dist/browser/key/export.js",
"deno": "./dist/browser/key/export.js",
"browser": "./dist/browser/key/export.js",
"worker": "./dist/browser/key/export.js",
"workerd": "./dist/browser/key/export.js",
"import": "./dist/node/esm/key/export.js",
"require": "./dist/node/cjs/key/export.js"
"node": {
"import": "./dist/node/esm/key/export.js",
"require": "./dist/node/cjs/key/export.js"
},
"default": "./dist/browser/key/export.js"
},
"./key/generate/keypair": {
"types": "./dist/types/key/generate_key_pair.d.ts",
"bun": "./dist/browser/key/generate_key_pair.js",
"deno": "./dist/browser/key/generate_key_pair.js",
"browser": "./dist/browser/key/generate_key_pair.js",
"worker": "./dist/browser/key/generate_key_pair.js",
"workerd": "./dist/browser/key/generate_key_pair.js",
"import": "./dist/node/esm/key/generate_key_pair.js",
"require": "./dist/node/cjs/key/generate_key_pair.js"
"node": {
"import": "./dist/node/esm/key/generate_key_pair.js",
"require": "./dist/node/cjs/key/generate_key_pair.js"
},
"default": "./dist/browser/key/generate_key_pair.js"
},
"./key/generate/secret": {
"types": "./dist/types/key/generate_secret.d.ts",
"bun": "./dist/browser/key/generate_secret.js",
"deno": "./dist/browser/key/generate_secret.js",
"browser": "./dist/browser/key/generate_secret.js",
"worker": "./dist/browser/key/generate_secret.js",
"workerd": "./dist/browser/key/generate_secret.js",
"import": "./dist/node/esm/key/generate_secret.js",
"require": "./dist/node/cjs/key/generate_secret.js"
"node": {
"import": "./dist/node/esm/key/generate_secret.js",
"require": "./dist/node/cjs/key/generate_secret.js"
},
"default": "./dist/browser/key/generate_secret.js"
},
"./jwks/remote": {
"types": "./dist/types/jwks/remote.d.ts",
"bun": "./dist/browser/jwks/remote.js",
"deno": "./dist/browser/jwks/remote.js",
"browser": "./dist/browser/jwks/remote.js",
"worker": "./dist/browser/jwks/remote.js",
"workerd": "./dist/browser/jwks/remote.js",
"import": "./dist/node/esm/jwks/remote.js",
"require": "./dist/node/cjs/jwks/remote.js"
"node": {
"import": "./dist/node/esm/jwks/remote.js",
"require": "./dist/node/cjs/jwks/remote.js"
},
"default": "./dist/browser/jwks/remote.js"
},
"./jwks/local": {
"types": "./dist/types/jwks/local.d.ts",
"bun": "./dist/browser/jwks/local.js",
"deno": "./dist/browser/jwks/local.js",
"browser": "./dist/browser/jwks/local.js",
"worker": "./dist/browser/jwks/local.js",
"workerd": "./dist/browser/jwks/local.js",
"import": "./dist/node/esm/jwks/local.js",
"require": "./dist/node/cjs/jwks/local.js"
"node": {
"import": "./dist/node/esm/jwks/local.js",
"require": "./dist/node/cjs/jwks/local.js"
},
"default": "./dist/browser/jwks/local.js"
},
"./jwt/sign": {
"types": "./dist/types/jwt/sign.d.ts",
"bun": "./dist/browser/jwt/sign.js",
"deno": "./dist/browser/jwt/sign.js",
"browser": "./dist/browser/jwt/sign.js",
"worker": "./dist/browser/jwt/sign.js",
"workerd": "./dist/browser/jwt/sign.js",
"import": "./dist/node/esm/jwt/sign.js",
"require": "./dist/node/cjs/jwt/sign.js"
"node": {
"import": "./dist/node/esm/jwt/sign.js",
"require": "./dist/node/cjs/jwt/sign.js"
},
"default": "./dist/browser/jwt/sign.js"
},
"./jwt/verify": {
"types": "./dist/types/jwt/verify.d.ts",
"bun": "./dist/browser/jwt/verify.js",
"deno": "./dist/browser/jwt/verify.js",
"browser": "./dist/browser/jwt/verify.js",
"worker": "./dist/browser/jwt/verify.js",
"workerd": "./dist/browser/jwt/verify.js",
"import": "./dist/node/esm/jwt/verify.js",
"require": "./dist/node/cjs/jwt/verify.js"
"node": {
"import": "./dist/node/esm/jwt/verify.js",
"require": "./dist/node/cjs/jwt/verify.js"
},
"default": "./dist/browser/jwt/verify.js"
},
"./jwt/encrypt": {
"types": "./dist/types/jwt/encrypt.d.ts",
"bun": "./dist/browser/jwt/encrypt.js",
"deno": "./dist/browser/jwt/encrypt.js",
"browser": "./dist/browser/jwt/encrypt.js",
"worker": "./dist/browser/jwt/encrypt.js",
"workerd": "./dist/browser/jwt/encrypt.js",
"import": "./dist/node/esm/jwt/encrypt.js",
"require": "./dist/node/cjs/jwt/encrypt.js"
"node": {
"import": "./dist/node/esm/jwt/encrypt.js",
"require": "./dist/node/cjs/jwt/encrypt.js"
},
"default": "./dist/browser/jwt/encrypt.js"
},
"./jwt/decrypt": {
"types": "./dist/types/jwt/decrypt.d.ts",
"bun": "./dist/browser/jwt/decrypt.js",
"deno": "./dist/browser/jwt/decrypt.js",
"browser": "./dist/browser/jwt/decrypt.js",
"worker": "./dist/browser/jwt/decrypt.js",
"workerd": "./dist/browser/jwt/decrypt.js",
"import": "./dist/node/esm/jwt/decrypt.js",
"require": "./dist/node/cjs/jwt/decrypt.js"
"node": {
"import": "./dist/node/esm/jwt/decrypt.js",
"require": "./dist/node/cjs/jwt/decrypt.js"
},
"default": "./dist/browser/jwt/decrypt.js"
},
"./jwt/unsecured": {
"types": "./dist/types/jwt/unsecured.d.ts",
"bun": "./dist/browser/jwt/unsecured.js",
"deno": "./dist/browser/jwt/unsecured.js",
"browser": "./dist/browser/jwt/unsecured.js",
"worker": "./dist/browser/jwt/unsecured.js",
"workerd": "./dist/browser/jwt/unsecured.js",
"import": "./dist/node/esm/jwt/unsecured.js",
"require": "./dist/node/cjs/jwt/unsecured.js"
"node": {
"import": "./dist/node/esm/jwt/unsecured.js",
"require": "./dist/node/cjs/jwt/unsecured.js"
},
"default": "./dist/browser/jwt/unsecured.js"
},
"./jwt/decode": {
"types": "./dist/types/util/decode_jwt.d.ts",
"bun": "./dist/browser/util/decode_jwt.js",
"deno": "./dist/browser/util/decode_jwt.js",
"browser": "./dist/browser/util/decode_jwt.js",
"worker": "./dist/browser/util/decode_jwt.js",
"workerd": "./dist/browser/util/decode_jwt.js",
"import": "./dist/node/esm/util/decode_jwt.js",
"require": "./dist/node/cjs/util/decode_jwt.js"
"node": {
"import": "./dist/node/esm/util/decode_jwt.js",
"require": "./dist/node/cjs/util/decode_jwt.js"
},
"default": "./dist/browser/util/decode_jwt.js"
},
"./decode/protected_header": {
"types": "./dist/types/util/decode_protected_header.d.ts",
"bun": "./dist/browser/util/decode_protected_header.js",
"deno": "./dist/browser/util/decode_protected_header.js",
"browser": "./dist/browser/util/decode_protected_header.js",
"worker": "./dist/browser/util/decode_protected_header.js",
"workerd": "./dist/browser/util/decode_protected_header.js",
"import": "./dist/node/esm/util/decode_protected_header.js",
"require": "./dist/node/cjs/util/decode_protected_header.js"
"node": {
"import": "./dist/node/esm/util/decode_protected_header.js",
"require": "./dist/node/cjs/util/decode_protected_header.js"
},
"default": "./dist/browser/util/decode_protected_header.js"
},
"./jws/compact/sign": {
"types": "./dist/types/jws/compact/sign.d.ts",
"bun": "./dist/browser/jws/compact/sign.js",
"deno": "./dist/browser/jws/compact/sign.js",
"browser": "./dist/browser/jws/compact/sign.js",
"worker": "./dist/browser/jws/compact/sign.js",
"workerd": "./dist/browser/jws/compact/sign.js",
"import": "./dist/node/esm/jws/compact/sign.js",
"require": "./dist/node/cjs/jws/compact/sign.js"
"node": {
"import": "./dist/node/esm/jws/compact/sign.js",
"require": "./dist/node/cjs/jws/compact/sign.js"
},
"default": "./dist/browser/jws/compact/sign.js"
},
"./jws/compact/verify": {
"types": "./dist/types/jws/compact/verify.d.ts",
"bun": "./dist/browser/jws/compact/verify.js",
"deno": "./dist/browser/jws/compact/verify.js",
"browser": "./dist/browser/jws/compact/verify.js",
"worker": "./dist/browser/jws/compact/verify.js",
"workerd": "./dist/browser/jws/compact/verify.js",
"import": "./dist/node/esm/jws/compact/verify.js",
"require": "./dist/node/cjs/jws/compact/verify.js"
"node": {
"import": "./dist/node/esm/jws/compact/verify.js",
"require": "./dist/node/cjs/jws/compact/verify.js"
},
"default": "./dist/browser/jws/compact/verify.js"
},
"./jws/flattened/sign": {
"types": "./dist/types/jws/flattened/sign.d.ts",
"bun": "./dist/browser/jws/flattened/sign.js",
"deno": "./dist/browser/jws/flattened/sign.js",
"browser": "./dist/browser/jws/flattened/sign.js",
"worker": "./dist/browser/jws/flattened/sign.js",
"workerd": "./dist/browser/jws/flattened/sign.js",
"import": "./dist/node/esm/jws/flattened/sign.js",
"require": "./dist/node/cjs/jws/flattened/sign.js"
"node": {
"import": "./dist/node/esm/jws/flattened/sign.js",
"require": "./dist/node/cjs/jws/flattened/sign.js"
},
"default": "./dist/browser/jws/flattened/sign.js"
},
"./jws/flattened/verify": {
"types": "./dist/types/jws/flattened/verify.d.ts",
"bun": "./dist/browser/jws/flattened/verify.js",
"deno": "./dist/browser/jws/flattened/verify.js",
"browser": "./dist/browser/jws/flattened/verify.js",
"worker": "./dist/browser/jws/flattened/verify.js",
"workerd": "./dist/browser/jws/flattened/verify.js",
"import": "./dist/node/esm/jws/flattened/verify.js",
"require": "./dist/node/cjs/jws/flattened/verify.js"
"node": {
"import": "./dist/node/esm/jws/flattened/verify.js",
"require": "./dist/node/cjs/jws/flattened/verify.js"
},
"default": "./dist/browser/jws/flattened/verify.js"
},
"./jws/general/sign": {
"types": "./dist/types/jws/general/sign.d.ts",
"bun": "./dist/browser/jws/general/sign.js",
"deno": "./dist/browser/jws/general/sign.js",
"browser": "./dist/browser/jws/general/sign.js",
"worker": "./dist/browser/jws/general/sign.js",
"workerd": "./dist/browser/jws/general/sign.js",
"import": "./dist/node/esm/jws/general/sign.js",
"require": "./dist/node/cjs/jws/general/sign.js"
"node": {
"import": "./dist/node/esm/jws/general/sign.js",
"require": "./dist/node/cjs/jws/general/sign.js"
},
"default": "./dist/browser/jws/general/sign.js"
},
"./jws/general/verify": {
"types": "./dist/types/jws/general/verify.d.ts",
"bun": "./dist/browser/jws/general/verify.js",
"deno": "./dist/browser/jws/general/verify.js",
"browser": "./dist/browser/jws/general/verify.js",
"worker": "./dist/browser/jws/general/verify.js",
"workerd": "./dist/browser/jws/general/verify.js",
"import": "./dist/node/esm/jws/general/verify.js",
"require": "./dist/node/cjs/jws/general/verify.js"
"node": {
"import": "./dist/node/esm/jws/general/verify.js",
"require": "./dist/node/cjs/jws/general/verify.js"
},
"default": "./dist/browser/jws/general/verify.js"
},
"./jwe/compact/encrypt": {
"types": "./dist/types/jwe/compact/encrypt.d.ts",
"bun": "./dist/browser/jwe/compact/encrypt.js",
"deno": "./dist/browser/jwe/compact/encrypt.js",
"browser": "./dist/browser/jwe/compact/encrypt.js",
"worker": "./dist/browser/jwe/compact/encrypt.js",
"workerd": "./dist/browser/jwe/compact/encrypt.js",
"import": "./dist/node/esm/jwe/compact/encrypt.js",
"require": "./dist/node/cjs/jwe/compact/encrypt.js"
"node": {
"import": "./dist/node/esm/jwe/compact/encrypt.js",
"require": "./dist/node/cjs/jwe/compact/encrypt.js"
},
"default": "./dist/browser/jwe/compact/encrypt.js"
},
"./jwe/compact/decrypt": {
"types": "./dist/types/jwe/compact/decrypt.d.ts",
"bun": "./dist/browser/jwe/compact/decrypt.js",
"deno": "./dist/browser/jwe/compact/decrypt.js",
"browser": "./dist/browser/jwe/compact/decrypt.js",
"worker": "./dist/browser/jwe/compact/decrypt.js",
"workerd": "./dist/browser/jwe/compact/decrypt.js",
"import": "./dist/node/esm/jwe/compact/decrypt.js",
"require": "./dist/node/cjs/jwe/compact/decrypt.js"
"node": {
"import": "./dist/node/esm/jwe/compact/decrypt.js",
"require": "./dist/node/cjs/jwe/compact/decrypt.js"
},
"default": "./dist/browser/jwe/compact/decrypt.js"
},
"./jwe/flattened/encrypt": {
"types": "./dist/types/jwe/flattened/encrypt.d.ts",
"bun": "./dist/browser/jwe/flattened/encrypt.js",
"deno": "./dist/browser/jwe/flattened/encrypt.js",
"browser": "./dist/browser/jwe/flattened/encrypt.js",
"worker": "./dist/browser/jwe/flattened/encrypt.js",
"workerd": "./dist/browser/jwe/flattened/encrypt.js",
"import": "./dist/node/esm/jwe/flattened/encrypt.js",
"require": "./dist/node/cjs/jwe/flattened/encrypt.js"
"node": {
"import": "./dist/node/esm/jwe/flattened/encrypt.js",
"require": "./dist/node/cjs/jwe/flattened/encrypt.js"
},
"default": "./dist/browser/jwe/flattened/encrypt.js"
},
"./jwe/flattened/decrypt": {
"types": "./dist/types/jwe/flattened/decrypt.d.ts",
"bun": "./dist/browser/jwe/flattened/decrypt.js",
"deno": "./dist/browser/jwe/flattened/decrypt.js",
"browser": "./dist/browser/jwe/flattened/decrypt.js",
"worker": "./dist/browser/jwe/flattened/decrypt.js",
"workerd": "./dist/browser/jwe/flattened/decrypt.js",
"import": "./dist/node/esm/jwe/flattened/decrypt.js",
"require": "./dist/node/cjs/jwe/flattened/decrypt.js"
"node": {
"import": "./dist/node/esm/jwe/flattened/decrypt.js",
"require": "./dist/node/cjs/jwe/flattened/decrypt.js"
},
"default": "./dist/browser/jwe/flattened/decrypt.js"
},
"./jwe/general/encrypt": {
"types": "./dist/types/jwe/general/encrypt.d.ts",
"bun": "./dist/browser/jwe/general/encrypt.js",
"deno": "./dist/browser/jwe/general/encrypt.js",
"browser": "./dist/browser/jwe/general/encrypt.js",
"worker": "./dist/browser/jwe/general/encrypt.js",
"workerd": "./dist/browser/jwe/general/encrypt.js",
"import": "./dist/node/esm/jwe/general/encrypt.js",
"require": "./dist/node/cjs/jwe/general/encrypt.js"
"node": {
"import": "./dist/node/esm/jwe/general/encrypt.js",
"require": "./dist/node/cjs/jwe/general/encrypt.js"
},
"default": "./dist/browser/jwe/general/encrypt.js"
},
"./jwe/general/decrypt": {
"types": "./dist/types/jwe/general/decrypt.d.ts",
"bun": "./dist/browser/jwe/general/decrypt.js",
"deno": "./dist/browser/jwe/general/decrypt.js",
"browser": "./dist/browser/jwe/general/decrypt.js",
"worker": "./dist/browser/jwe/general/decrypt.js",
"workerd": "./dist/browser/jwe/general/decrypt.js",
"import": "./dist/node/esm/jwe/general/decrypt.js",
"require": "./dist/node/cjs/jwe/general/decrypt.js"
"node": {
"import": "./dist/node/esm/jwe/general/decrypt.js",
"require": "./dist/node/cjs/jwe/general/decrypt.js"
},
"default": "./dist/browser/jwe/general/decrypt.js"
},
"./errors": {
"types": "./dist/types/util/errors.d.ts",
"bun": "./dist/browser/util/errors.js",
"deno": "./dist/browser/util/errors.js",
"browser": "./dist/browser/util/errors.js",
"worker": "./dist/browser/util/errors.js",
"workerd": "./dist/browser/util/errors.js",
"import": "./dist/node/esm/util/errors.js",
"require": "./dist/node/cjs/util/errors.js"
"node": {
"import": "./dist/node/esm/util/errors.js",
"require": "./dist/node/cjs/util/errors.js"
},
"default": "./dist/browser/util/errors.js"
},
"./base64url": {
"types": "./dist/types/util/base64url.d.ts",
"bun": "./dist/browser/util/base64url.js",
"deno": "./dist/browser/util/base64url.js",
"browser": "./dist/browser/util/base64url.js",
"worker": "./dist/browser/util/base64url.js",
"workerd": "./dist/browser/util/base64url.js",
"import": "./dist/node/esm/util/base64url.js",
"require": "./dist/node/cjs/util/base64url.js"
"node": {
"import": "./dist/node/esm/util/base64url.js",
"require": "./dist/node/cjs/util/base64url.js"
},
"default": "./dist/browser/util/base64url.js"
},

@@ -364,0 +304,0 @@ "./package.json": "./package.json"

@@ -11,3 +11,3 @@ # jose

<img height="65" align="left" alt="Auth0 by Okta" src="./sponsor/Auth0byOkta_light.png">
</picture>
</picture>

@@ -42,9 +42,9 @@ 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!][sponsor-auth0]<br><br>

- [JWT Claims Set Validation & Signature Verification](docs/functions/jwt_verify.jwtVerify.md) using the `jwtVerify` function
- [Using a remote JSON Web Key Set (JWKS)](docs/functions/jwks_remote.createRemoteJWKSet.md)
- [Using a local JSON Web Key Set (JWKS)](docs/functions/jwks_local.createLocalJWKSet.md)
- [Signing](docs/classes/jwt_sign.SignJWT.md) using the `SignJWT` class
- [JWT Claims Set Validation & Signature Verification](docs/jwt/verify/functions/jwtVerify.md) using the `jwtVerify` function
- [Using a remote JSON Web Key Set (JWKS)](docs/jwks/remote/functions/createRemoteJWKSet.md)
- [Using a local JSON Web Key Set (JWKS)](docs/jwks/local/functions/createLocalJWKSet.md)
- [Signing](docs/jwt/sign/classes/SignJWT.md) using the `SignJWT` class
- Utility functions
- [Decoding Token's Protected Header](docs/functions/util_decode_protected_header.decodeProtectedHeader.md)
- [Decoding JWT Claims Set](docs/functions/util_decode_jwt.decodeJwt.md) prior to its validation
- [Decoding Token's Protected Header](docs/util/decode_protected_header/functions/decodeProtectedHeader.md)
- [Decoding JWT Claims Set](docs/util/decode_jwt/functions/decodeJwt.md) prior to its validation

@@ -55,6 +55,6 @@ ### Encrypted JSON Web Tokens

- [Decryption & JWT Claims Set Validation](docs/functions/jwt_decrypt.jwtDecrypt.md) using the `jwtDecrypt` function
- [Encryption](docs/classes/jwt_encrypt.EncryptJWT.md) using the `EncryptJWT` class
- [Decryption & JWT Claims Set Validation](docs/jwt/decrypt/functions/jwtDecrypt.md) using the `jwtDecrypt` function
- [Encryption](docs/jwt/encrypt/classes/EncryptJWT.md) using the `EncryptJWT` class
- Utility functions
- [Decoding Token's Protected Header](docs/functions/util_decode_protected_header.decodeProtectedHeader.md)
- [Decoding Token's Protected Header](docs/util/decode_protected_header/functions/decodeProtectedHeader.md)

@@ -66,13 +66,13 @@ ### Key Utilities

- Key Import Functions
- [JWK Import](docs/functions/key_import.importJWK.md)
- [Public Key Import (SPKI)](docs/functions/key_import.importSPKI.md)
- [Public Key Import (X.509 Certificate)](docs/functions/key_import.importX509.md)
- [Private Key Import (PKCS #8)](docs/functions/key_import.importPKCS8.md)
- [JWK Import](docs/key/import/functions/importJWK.md)
- [Public Key Import (SPKI)](docs/key/import/functions/importSPKI.md)
- [Public Key Import (X.509 Certificate)](docs/key/import/functions/importX509.md)
- [Private Key Import (PKCS #8)](docs/key/import/functions/importPKCS8.md)
- Key and Secret Generation Functions
- [Asymmetric Key Pair Generation](docs/functions/key_generate_key_pair.generateKeyPair.md)
- [Symmetric Secret Generation](docs/functions/key_generate_secret.generateSecret.md)
- [Asymmetric Key Pair Generation](docs/key/generate_key_pair/functions/generateKeyPair.md)
- [Symmetric Secret Generation](docs/key/generate_secret/functions/generateSecret.md)
- Key Export Functions
- [JWK Export](docs/functions/key_export.exportJWK.md)
- [Private Key Export](docs/functions/key_export.exportPKCS8.md)
- [Public Key Export](docs/functions/key_export.exportSPKI.md)
- [JWK Export](docs/key/export/functions/exportJWK.md)
- [Private Key Export](docs/key/export/functions/exportPKCS8.md)
- [Public Key Export](docs/key/export/functions/exportSPKI.md)

@@ -83,8 +83,8 @@ ### JSON Web Signature (JWS)

- Signing - [Compact](docs/classes/jws_compact_sign.CompactSign.md), [Flattened JSON](docs/classes/jws_flattened_sign.FlattenedSign.md), [General JSON](docs/classes/jws_general_sign.GeneralSign.md)
- Verification - [Compact](docs/functions/jws_compact_verify.compactVerify.md), [Flattened JSON](docs/functions/jws_flattened_verify.flattenedVerify.md), [General JSON](docs/functions/jws_general_verify.generalVerify.md)
- [Using a remote JSON Web Key Set (JWKS)](docs/functions/jwks_remote.createRemoteJWKSet.md)
- [Using a local JSON Web Key Set (JWKS)](docs/functions/jwks_local.createLocalJWKSet.md)
- Signing - [Compact](docs/jws/compact/sign/classes/CompactSign.md), [Flattened JSON](docs/jws/flattened/sign/classes/FlattenedSign.md), [General JSON](docs/jws/general/sign/classes/GeneralSign.md)
- Verification - [Compact](docs/jws/compact/verify/functions/compactVerify.md), [Flattened JSON](docs/jws/flattened/verify/functions/flattenedVerify.md), [General JSON](docs/jws/general/verify/functions/generalVerify.md)
- [Using a remote JSON Web Key Set (JWKS)](docs/jwks/remote/functions/createRemoteJWKSet.md)
- [Using a local JSON Web Key Set (JWKS)](docs/jwks/local/functions/createLocalJWKSet.md)
- Utility functions
- [Decoding Token's Protected Header](docs/functions/util_decode_protected_header.decodeProtectedHeader.md)
- [Decoding Token's Protected Header](docs/util/decode_protected_header/functions/decodeProtectedHeader.md)

@@ -95,6 +95,6 @@ ### JSON Web Encryption (JWE)

- Encryption - [Compact](docs/classes/jwe_compact_encrypt.CompactEncrypt.md), [Flattened JSON](docs/classes/jwe_flattened_encrypt.FlattenedEncrypt.md), [General JSON](docs/classes/jwe_general_encrypt.GeneralEncrypt.md)
- Decryption - [Compact](docs/functions/jwe_compact_decrypt.compactDecrypt.md), [Flattened JSON](docs/functions/jwe_flattened_decrypt.flattenedDecrypt.md), [General JSON](docs/functions/jwe_general_decrypt.generalDecrypt.md)
- Encryption - [Compact](docs/jwe/compact/encrypt/classes/CompactEncrypt.md), [Flattened JSON](docs/jwe/flattened/encrypt/classes/FlattenedEncrypt.md), [General JSON](docs/jwe/general/encrypt/classes/GeneralEncrypt.md)
- Decryption - [Compact](docs/jwe/compact/decrypt/functions/compactDecrypt.md), [Flattened JSON](docs/jwe/flattened/decrypt/functions/flattenedDecrypt.md), [General JSON](docs/jwe/general/decrypt/functions/generalDecrypt.md)
- Utility functions
- [Decoding Token's Protected Header](docs/functions/util_decode_protected_header.decodeProtectedHeader.md)
- [Decoding Token's Protected Header](docs/util/decode_protected_header/functions/decodeProtectedHeader.md)

@@ -105,7 +105,7 @@ ### Other

- [Calculating JWK Thumbprint](docs/functions/jwk_thumbprint.calculateJwkThumbprint.md)
- [Calculating JWK Thumbprint URI](docs/functions/jwk_thumbprint.calculateJwkThumbprintUri.md)
- [Verification using a JWK Embedded in a JWS Header](docs/functions/jwk_embedded.EmbeddedJWK.md)
- [Unsecured JWT](docs/classes/jwt_unsecured.UnsecuredJWT.md)
- [JOSE Errors](docs/modules/util_errors.md)
- [Calculating JWK Thumbprint](docs/jwk/thumbprint/functions/calculateJwkThumbprint.md)
- [Calculating JWK Thumbprint URI](docs/jwk/thumbprint/functions/calculateJwkThumbprintUri.md)
- [Verification using a JWK Embedded in a JWS Header](docs/jwk/embedded/functions/EmbeddedJWK.md)
- [Unsecured JWT](docs/jwt/unsecured/classes/UnsecuredJWT.md)
- [JOSE Errors](docs/util/errors/README.md)

@@ -112,0 +112,0 @@ ## Supported Runtimes

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc