RegisteredClaims
RegisteredClaims
The RFC 7519 §4.1 registered claims, each checked against its defined type.
ts
interface RegisteredClaims {
readonly iss?: string;
readonly sub?: string;
readonly aud?: string | readonly string[];
readonly exp?: number;
readonly nbf?: number;
readonly iat?: number;
readonly jti?: string;
}Properties
readonlyiss?:string— Issuer.readonlysub?:string— Subject.readonlyaud?:string|readonlystring``[]— Audience, as the token carried it: a string or an array of strings.readonlyexp?:number— Expiration time in seconds since the epoch.readonlynbf?:number— Not-before time in seconds since the epoch.readonlyiat?:number— Issued-at time in seconds since the epoch.readonlyjti?:string— Token identifier.