Comparing version 8.0.6 to 8.1.0
{ | ||
"name": "get-jwks", | ||
"version": "8.0.6", | ||
"version": "8.1.0", | ||
"description": "Fetch utils for JWKS keys", | ||
@@ -37,7 +37,7 @@ "main": "src/get-jwks.js", | ||
"devDependencies": { | ||
"@fastify/jwt": "^6.1.0", | ||
"@fastify/jwt": "^7.0.0", | ||
"@types/node": "^20.0.0", | ||
"@types/node-fetch": "^2.6.2", | ||
"eslint": "^8.6.0", | ||
"fast-jwt": "^2.0.0", | ||
"fast-jwt": "^3.0.0", | ||
"fastify": "^4.0.3", | ||
@@ -44,0 +44,0 @@ "jsonwebtoken": "^9.0.0", |
@@ -133,6 +133,6 @@ # get-jwks | ||
const verifyWithPromise = createVerifier({ | ||
key: async function (token) { | ||
key: async function ({ header }) { | ||
const publicKey = await getJwks.getPublicKey({ | ||
kid: token.kid, | ||
alg: token.alg, | ||
kid: header.kid, | ||
alg: header.alg, | ||
domain, | ||
@@ -139,0 +139,0 @@ }) |
@@ -25,6 +25,6 @@ 'use strict' | ||
const verifyWithPromise = createVerifier({ | ||
key: async function (token) { | ||
key: async function ({ header }) { | ||
const publicKey = await getJwks.getPublicKey({ | ||
kid: token.kid, | ||
alg: token.alg, | ||
kid: header.kid, | ||
alg: header.alg, | ||
domain, | ||
@@ -31,0 +31,0 @@ }) |
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
51106