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

19 lines (18 loc) 550 B
import { EnrollTotpResponse } from "./api/types/totp"; import { AuthsignalResponse, VerifyResponse } from "./types"; type TotpOptions = { baseUrl: string; tenantId: string; onTokenExpired?: () => void; }; type VerifyParams = { code: string; }; export declare class Totp { private api; private cache; constructor({ baseUrl, tenantId, onTokenExpired }: TotpOptions); enroll(): Promise<AuthsignalResponse<EnrollTotpResponse>>; verify({ code }: VerifyParams): Promise<AuthsignalResponse<VerifyResponse>>; } export {};