Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
type alias JWTConfig
import { type JWTConfig } from "https://deno.land/x/fathym_everything_as_code@v0.0.414-integration/src/utils/jwt/JWTConfig.ts";
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>; }