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

16 lines (15 loc) 546 B
import { ApiClientOptions, ErrorResponse, VerifyResponse } from "./types/shared"; import { EnrollTotpResponse } from "./types/totp"; export declare class TotpApiClient { tenantId: string; baseUrl: string; onTokenExpired?: () => void; constructor({ baseUrl, tenantId, onTokenExpired }: ApiClientOptions); enroll({ token }: { token: string; }): Promise<EnrollTotpResponse | ErrorResponse>; verify({ token, code }: { token: string; code: string; }): Promise<VerifyResponse | ErrorResponse>; }