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

get-jwks

Package Overview
Dependencies
Maintainers
7
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-jwks - npm Package Compare versions

Comparing version 8.0.6 to 8.1.0

6

package.json
{
"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 @@ })

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