Interface JwtSalesChannel

The structure of a JWT token for a registered sales channel Sales channels can request customer tokens with this token

interface JwtSalesChannel {
    exp: number;
    iat: number;
    iss: string;
    jti: string;
    meta: JwtSalesChannelMeta;
    nbf: number;
    sub: string;
    type: SALES_CHANNEL;
}

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 sales channel id

For sales-channel tokens, the type will always be "sales-channel"