Variable basaltTokenConst
basaltToken: { getAudience: (token: string) => string; getExpirationDate: (token: string) => Date; getHeader: (token: string) => BasaltTokenHeader; getIssuer: (token: string) => string; getPayload: <T extends object>(token: string) => T; getTokenUuid: (token: string) => string; isExpired: (token: string) => boolean; sign: <T extends object>( payload: T, expirationMs?: number, issuer?: string, audience?: string, ) => BasaltTokenSignResult; verify: (token: string, publicKey: string) => void;} = ... Type declaration
getAudience: (token: string) => string
getExpirationDate: (token: string) => Date
getIssuer: (token: string) => string
getPayload: <T extends object>(token: string) => T
getTokenUuid: (token: string) => string
isExpired: (token: string) => boolean
sign: <T extends object>(
payload: T,
expirationMs?: number,
issuer?: string,
audience?: string,
) => BasaltTokenSignResult
verify: (token: string, publicKey: string) => void
Basalt Token Service provides functions to sign, verify, and extract information from Basalt tokens.