UNPKG

cf-auth0

Version:

🔐 Auth0 Client on Cloudflare Pages

34 lines (33 loc) 884 B
import type { JWK } from 'jws'; declare class JwksClient { options: { jwksUri: string; rateLimit: boolean; cache: boolean; timeout: number; cacheMaxEntries?: number; cacheMaxAge?: number; }; constructor(options: { jwksUri: string; rateLimit?: boolean; cache?: boolean; timeout?: number; cacheMaxEntries?: number; cacheMaxAge?: number; }); getKeys(): Promise<JWK[]>; getSigningKeys(): Promise<{ alg?: import("jws").Algorithm | undefined; kid?: string | undefined; publicKey: string; rsaPublicKey: string; }[]>; getSigningKey(kid?: string): Promise<{ alg?: import("jws").Algorithm | undefined; kid?: string | undefined; publicKey: string; rsaPublicKey: string; }>; } export { JwksClient };