IFClite TypeScript API
    Preparing search index...

    Interface SignRoomTokenOptions

    interface SignRoomTokenOptions {
        jti?: string;
        kid?: string;
        now?: () => number;
        role: Role;
        roomId: string;
        secret: string;
        ttlSeconds?: number;
    }
    Index
    jti?: string

    Override the unique token id (default: random UUID).

    kid?: string

    Key id written to the JWS header for rotation.

    now?: () => number

    Injectable clock (ms) for deterministic tests.

    role: Role
    roomId: string
    secret: string

    Signing secret (must match the verifier's secret for this kid).

    ttlSeconds?: number

    Token lifetime in seconds (default 7 days).