Interface SessionPayload

The payload structure encoded inside a session token.

interface SessionPayload {
    hId: string;
    hNm: string;
    hPath?: string[];
    aud: string;
    scp: string[];
    exp: number;
    iat: number;
    jti: string;
}

Properties

Properties

hId: string

Handle / SubHandle ID (Base64URL of public key).

hNm: string

Handle / SubHandle name.

hPath?: string[]

Derivation path for SubHandle sessions. Present only when the session was created by a SubHandle. Format: [handleName, subName].

aud: string

Intended audience.

scp: string[]

Granted scopes.

exp: number

Expiration timestamp (Unix seconds).

iat: number

Issued-at timestamp (Unix seconds).

jti: string

Unique session identifier, used for revocation. Always present (generated automatically if not provided).