Interface AccessTokenClaims

Claims contained in an access token issued using the functions of this library.

interface AccessTokenClaims {
    aud?: string | string[];
    exp: number;
    iat: number;
    iss: string;
    jti: string;
    me: string;
    nbf?: number;
    scope: string;
    sub?: string;
    [propName: string]: unknown;
}

Hierarchy

  • JWTPayload
    • AccessTokenClaims

Indexable

  • [propName: string]: unknown

    Any other JWT Claim Set member.

Properties

aud?: string | string[]

JWT Audience

exp: number

(Expiration Time): Indicates the UNIX timestamp (in seconds) at which the access token expires.

iat: number

(Issued At): Specifies the UNIX timestamp (in seconds) at which the access token was issued.

iss: string

(Issuer): Specifies the issuer of the access token, typically the authorization server.

jti: string

(JWT ID): A unique identifier for the access token. Useful for revoking the token.

me: string
nbf?: number

JWT Not Before

scope: string

Space-separated list of permissions granted to the access token.

sub?: string

JWT Subject