Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/fathym_common/src/common/jwt/JWTConfig.ts>JWTConfig

The Fathym Reference Architecture provides the common foundation for applications built in Typescript.
Latest
type alias JWTConfig
import { type JWTConfig } from "https://deno.land/x/fathym_common@v0.2.160/src/common/jwt/JWTConfig.ts";

JWT configuration.

definition: { Algorithm: AlgorithmIdentifier; Create: (data: Record<string, unknown>, expTime?: number) => Promise<string>; Decode: <T>(token: string) => Promise<[unknown, T, Uint8Array]>; ExpirationTime: number; Header: string; JWK: JsonWebKey; KeyUsages: KeyUsage[]; LoadToken: (req: Request) => string | undefined; SecretKey: () => Promise<CryptoKey>; Schema: string; Type: "JWT"; Verify: (token: string) => Promise<djwt.Payload>; }