Module

x/jose/types.d.ts>GenericGetKeyFunction

JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes.
Extremely Popular
Latest
interface GenericGetKeyFunction
import { type GenericGetKeyFunction } from "https://dotland.deno.dev/x/jose@v5.9.2/types.d.ts";

Type Parameters

IProtectedHeader
IToken
ReturnKeyTypes

Call Signatures

(protectedHeader: IProtectedHeader, token: IToken): Promise<ReturnKeyTypes> | ReturnKeyTypes

Dynamic key resolution function. No token components have been verified at the time of this function call.

If you cannot match a key suitable for the token, throw an error instead.