IFClite TypeScript API
    Preparing search index...

    Interface RoomTokenAuthenticatorOptions

    interface RoomTokenAuthenticatorOptions {
        clockToleranceSec?: number;
        isRevoked?: (jti: string) => boolean | Promise<boolean>;
        now?: () => number;
        principalFor?: (claims: RoomTokenClaims) => Principal;
        secret: SecretResolver;
    }
    Index
    clockToleranceSec?: number
    isRevoked?: (jti: string) => boolean | Promise<boolean>

    Deny-list check for revoked jtis ("revoke this link").

    now?: () => number
    principalFor?: (claims: RoomTokenClaims) => Principal

    Map verified claims to a Principal. Default: a fresh anonymous per-connection userId (the real identity lives in awareness) with the token's role, expiry, and { jti, room } audit metadata.