Skip to main content
Module

x/jose/index.ts>GetKeyFunction

JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes.
Extremely Popular
Go to Latest
interface GetKeyFunction
import { type GetKeyFunction } from "https://deno.land/x/jose@v5.2.4/index.ts";

Generic Interface for consuming operations dynamic key resolution.

Type Parameters

IProtectedHeader
IToken

Call Signatures

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

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.