JWT
Represents a JWT.
Definition
interface JWT {
value: string;
headers: object;
payload: object;
algorithm: JWTAlgorithm;
expiresAt: Date | null;
issuer: string | null;
subject: string | null;
audiences: string[] | null;
notBefore: Date | null;
issuedAt: Date | null;
jwtId: string | null;
parts: [header: string, payload: string, signature: string];
}
Properties
value
: JWT stringheaders
payload
algorithm
expiresAt
:exp
claimissuer
:iss
claimsubject
:sub
claimaudiences
:aud
claimsnotBefore
:nbf
claimissuedAt
:iat
claimjwtId
:jti
claimparts
: JWT string separated into 3 parts