Cotal TypeScript packages
    Preparing search index...

    Interface ValidatedUserToken

    A fully validated user token, reduced to what the callout needs.

    interface ValidatedUserToken {
        act: UserTokenActor;
        credentialId?: string;
        exp: number;
        owner: string;
        scope: string[];
        space: string;
        ver: number;
    }
    Index

    The validated actor claim.

    credentialId?: string

    The credential-ledger row id this bearer was minted under (== act.credentialId, hoisted for the connect boundary's leader-served revocation read). Absent on a pre-cut bearer.

    exp: number

    Bearer expiry (unix seconds) — the callout binds the minted NATS user JWT's lifetime to it, so broker access dies with the bearer (the v1 revocation lever, enforced server-side).

    owner: string

    The opaque derived owner (== sub, format-asserted).

    scope: string[]

    Capability scope (scope claim; empty when absent).

    space: string

    The space this token is scoped to (== aud).

    ver: number

    Token-shape version (== USER_TOKEN_VER).