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) 853 B
import { QrCodeChallengeResponse } from "../api/types/qr-code"; import { AuthsignalResponse } from "../types"; import { ChallengeParams } from "../qr-code"; import { BaseQrHandler } from "./base-qr-handler"; export declare class RestQrHandler extends BaseQrHandler { private api; private pollingInterval?; private refreshTimeout?; private currentChallengeParams?; private cache; constructor({ baseUrl, tenantId }: { baseUrl: string; tenantId: string; }); challenge(params: ChallengeParams): Promise<AuthsignalResponse<QrCodeChallengeResponse>>; refresh({ custom }?: { custom?: Record<string, unknown>; }): Promise<void>; disconnect(): void; private startRefreshTimer; private clearRefreshTimer; private performRefresh; private startPolling; private clearPolling; }