You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

verify-rsa-jwt-cloudflare-worker

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

verify-rsa-jwt-cloudflare-worker - npm Package Compare versions

Comparing version

to
1.0.6

2

dist/hono-middleware.d.ts

@@ -6,3 +6,3 @@ import type { Context, MiddlewareHandler } from 'hono';

kvStore?: GeneralKeyValueStore;
payloadValidator?: (payload: VerificationResult) => void;
payloadValidator?: (payload: VerificationResult, ctx: Context) => void;
verbose?: boolean;

@@ -9,0 +9,0 @@ };

@@ -18,3 +18,3 @@ import { getJwks, useKVStore, verify } from '.';

// Custom validator that should throw an error if the payload is invalid.
config?.payloadValidator?.(result);
config?.payloadValidator?.(result, ctx);
// Accessible payload.

@@ -21,0 +21,0 @@ ctx.set(PAYLOAD_KEY, result.payload);

@@ -5,3 +5,3 @@ {

"author": "Wataru Oguchi",
"version": "1.0.5",
"version": "1.0.6",
"license": "MIT",

@@ -8,0 +8,0 @@ "repository": {

@@ -106,3 +106,3 @@ # verify-rsa-jwt-cloudflare-worker

kvStore: // Anything that keeps a value, KVNamespace would work too.
payloadValidator: ({payload}) => { /* Validate the payload, throw an error if invalid */ },
payloadValidator: ({payload, ctx}) => { /* Validate the payload, throw an error if invalid */ },
})

@@ -109,0 +109,0 @@ )