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

get-jwks

Package Overview
Dependencies
Maintainers
11
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 6.0.2 to 6.0.3

7

package.json
{
"name": "get-jwks",
"version": "6.0.2",
"version": "6.0.3",
"description": "Fetch utils for JWKS keys",

@@ -32,2 +32,3 @@ "main": "src/get-jwks.js",

"dependencies": {
"@types/node": "^17.0.35",
"jwk-to-pem": "^2.0.4",

@@ -38,2 +39,3 @@ "lru-cache": "^7.4.0",

"devDependencies": {
"@fastify/jwt": "^5.0.1",
"@types/lru-cache": "^7.4.0",

@@ -43,7 +45,6 @@ "eslint": "^8.6.0",

"fastify": "^3.12.0",
"fastify-jwt": "^4.0.0",
"jsonwebtoken": "^8.5.1",
"nock": "^13.0.7",
"prettier": "^2.2.1",
"sinon": "^13.0.1",
"sinon": "^14.0.0",
"tap": "^16.0.0",

@@ -50,0 +51,0 @@ "tsd": "^0.20.0",

@@ -81,5 +81,5 @@ # get-jwks

### fastify-jwt
### @fastify/jwt
[fastify-jwt](https://github.com/fastify/fastify-jwt) is a Json Web Token plugin for [Fastify](https://www.fastify.io/).
[@fastify/jwt](https://github.com/fastify/fastify-jwt) is a Json Web Token plugin for [Fastify](https://www.fastify.io/).

@@ -90,3 +90,3 @@ The following example includes a scenario where you'd like to varify a JWT against a valid JWK on any request to your Fastify server. Any request with a valid JWT auth token in the header will return a successful response, otherwise will respond with an authentication error.

const Fastify = require('fastify')
const fjwt = require('fastify-jwt')
const fjwt = require('@fastify/jwt')
const buildGetJwks = require('get-jwks')

@@ -93,0 +93,0 @@

import LRU from 'lru-cache'
import type { Agent } from 'https'

@@ -18,3 +19,3 @@ type JWKSignature = { domain: string; alg: string; kid: string }

jwksPath?: string
agent?: string
agent?: Agent
}

@@ -21,0 +22,0 @@

@@ -6,3 +6,3 @@ 'use strict'

const Fastify = require('fastify')
const fjwt = require('fastify-jwt')
const fjwt = require('@fastify/jwt')

@@ -21,3 +21,3 @@ const { oidcConfig, jwks, token, domain } = require('./constants')

t.test('fastify-jwt integration tests', async t => {
t.test('@fastify/jwt integration tests', async t => {
nock(domain).get('/.well-known/jwks.json').reply(200, jwks)

@@ -61,3 +61,3 @@

t.test('fastify-jwt integration tests with providerDiscovery', async t => {
t.test('@fastify/jwt integration tests with providerDiscovery', async t => {
nock(domain)

@@ -64,0 +64,0 @@ .get('/.well-known/openid-configuration')

Sorry, the diff of this file is not supported yet

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