Interface representing the structure of a JWT payload with standard claims.

interface JwtPayload {
    sub?: string;
    iss?: string;
    aud?: string;
    exp?: number;
    nbf?: number;
    iat?: number;
    jti?: string;
    [key: string]: any;
}

Indexable

[key: string]: any

Additional custom claims

Properties

sub?: string

Subject (user ID)

iss?: string

Issuer

aud?: string

Audience

exp?: number

Expiration time (Unix timestamp in seconds)

nbf?: number

Not before time (Unix timestamp in seconds)

iat?: number

Issued at time (Unix timestamp in seconds)

jti?: string

JWT ID