Cotal TypeScript packages
    Preparing search index...

    Interface ExchangeResult

    A successful exchange: the minted bearer plus what a caller needs to cache/refresh it.

    interface ExchangeResult {
        exp: number;
        grant: UserAuthGrant;
        owner: string;
        token: string;
    }
    Index
    exp: number

    Bearer expiry (unix seconds) — schedule re-mint before this.

    The current grant the issuer authorized for this mint. It is separate from the bearer so a client never needs to decode permission claims itself.

    owner: string

    The derived opaque owner the bearer is bound to.

    token: string

    The Cotal user bearer (compact JWS) the agent presents in auth_token.