IFClite TypeScript API
    Preparing search index...

    Interface RevokeEndpointOptions

    interface RevokeEndpointOptions {
        allowOrigin?: string;
        isRevoked?: (jti: string) => boolean | Promise<boolean>;
        maxBodyBytes?: number;
        now?: () => number;
        recordRevocation: (
            jti: string,
            room: string,
            exp?: number,
        ) => void | Promise<void>;
        secret: SecretResolver;
    }
    Index
    allowOrigin?: string
    isRevoked?: (jti: string) => boolean | Promise<boolean>

    Deny-list check — a bearer whose own jti was revoked (e.g. a kicked admin) must not be able to keep revoking other people's links.

    maxBodyBytes?: number
    now?: () => number
    recordRevocation: (
        jti: string,
        room: string,
        exp?: number,
    ) => void | Promise<void>

    Add a jti to the server's deny-list. The authenticator's isRevoked should consult the same store so future joins with this token are rejected. exp is the revoked token's expiry (seconds since epoch) when known — stores use it to prune deny-list entries once the token would have expired on its own.

    Secret used to verify the target + bearer tokens.