import { jose } from "https://deno.land/x/jwe_cookie_map@v1.0.1/src/deps.ts";
const { ProduceJWT } = jose;
Generic class for JWT producing.
Constructors
new
ProduceJWT(payload: JWTPayload)Properties
protected
_payload: JWTPayloadMethods
setAudience(audience: string | string[])
Set "aud" (Audience) Claim.
setExpirationTime(input: number | string)
Set "exp" (Expiration Time) Claim.
setIssuedAt(input?: number)
Set "iat" (Issued At) Claim.
setIssuer(issuer: string)
Set "iss" (Issuer) Claim.
setJti(jwtId: string)
Set "jti" (JWT ID) Claim.
setNotBefore(input: number | string)
Set "nbf" (Not Before) Claim.
setSubject(subject: string)
Set "sub" (Subject) Claim.