Interface JwtBase

The base structure of a JWT token

interface JwtBase {
    exp: number;
    iat: number;
    iss: string;
    jti: string;
    meta: JwtBaseMeta;
    nbf: number;
    sub: string;
    type: JwtType;
}

Hierarchy (view full)

Properties

Properties

exp: number

Unix timestamp of when the token expires

iat: number

Unix timestamp of when the token was issued

iss: string

The issuer of the token, usually will equal to "api-gateway"

jti: string

The JWT ID, a unique identifier for the token

The meta object contains additional information about the token, or the token's owner

nbf: number

Unix timestamp of when the token becomes active

sub: string

The subject of the token, user id, sales channel id, micro service id, etc.

type: JwtType

The token's type,