UNPKG

@authsignal/browser

Version:

**[Authsignal](https://www.authsignal.com) provides passwordless step up authentication (Multi-factor Authentication - MFA) that can be placed anywhere within your application. Authsignal also provides a no-code fraud risk rules engine to manage when step

26 lines (25 loc) 813 B
import { WebSocketQrCodeOptions, WebSocketQrCodeResponse } from "./types/websocket"; export declare class WebSocketClient { private ws; private baseUrl; private tenantId; private messageHandlers; private options; private refreshInterval; private tokenCache; constructor({ baseUrl, tenantId }: { baseUrl: string; tenantId: string; }); connect(): Promise<void>; private handleMessage; createQrCodeChallenge(options: WebSocketQrCodeOptions): Promise<WebSocketQrCodeResponse>; private monitorChallengeState; private startRefreshCycle; private sendChallengeRequest; private sendMessage; refreshQrCodeChallenge({ custom }: { custom?: Record<string, unknown>; }): Promise<WebSocketQrCodeResponse>; disconnect(): void; }