Interface JwtCockpit

The structure of a JWT token for an cockpit user.

interface JwtCockpit {
    exp: number;
    iat: number;
    iss: string;
    jti: string;
    meta: JwtCockpitMeta;
    nbf: number;
    sub: string;
    type: COCKPIT;
}

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 user id of the cockpit user

type: COCKPIT

For cockpit tokens, the type will always be "cockpit"