Anchorage API reference
    Preparing search index...
    interface MintStreamTicketOptions {
        actor: ApprovalActor;
        channel: StreamChannel;
        now?: () => number;
        runId?: string;
        secret: string;
        tenantId: string;
        ttlSeconds?: number;
    }
    Index

    Properties

    The authenticated actor — only id and role are carried.

    channel: StreamChannel
    now?: () => number

    Epoch-ms clock, injectable for tests. Default Date.now.

    runId?: string

    REQUIRED for the 'run' channel; omitted for 'hub'.

    secret: string

    The dedicated stream-ticket signing secret (STREAM_TICKET_SECRET).

    tenantId: string

    The authenticated, previously validated tenant to which the ticket is bound.

    ttlSeconds?: number

    Ticket lifetime in seconds (exp = now + ttl). Default 60.