jose-node-esm-runtime
Advanced tools
Comparing version 3.15.4 to 3.15.5
@@ -96,3 +96,3 @@ import parseJWK from '../jwk/parse.js'; | ||
if (cached[protectedHeader.alg] === undefined) { | ||
const keyObject = (await parseJWK({ ...jwk, alg: protectedHeader.alg })); | ||
const keyObject = await parseJWK({ ...jwk, alg: protectedHeader.alg }); | ||
if (keyObject.type !== 'public') { | ||
@@ -128,6 +128,5 @@ throw new JWKSInvalid('JSON Web Key Set members must be public keys'); | ||
function createRemoteJWKSet(url, options) { | ||
const set = new RemoteJWKSet(url, options); | ||
return set.getKey.bind(set); | ||
return RemoteJWKSet.prototype.getKey.bind(new RemoteJWKSet(url, options)); | ||
} | ||
export { createRemoteJWKSet }; | ||
export default createRemoteJWKSet; |
{ | ||
"name": "jose-node-esm-runtime", | ||
"version": "3.15.4", | ||
"version": "3.15.5", | ||
"description": "(Node.JS ESM Runtime) 'JSON Web Almost Everything' - JWA, JWS, JWE, JWT, JWK with no dependencies", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
152342
3883