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) 565 B
import { ChallengeResponse } from "./api/types/shared"; import { AuthsignalResponse, VerifyResponse } from "./types"; type WhatsappOptions = { baseUrl: string; tenantId: string; onTokenExpired?: () => void; }; type VerifyParams = { code: string; }; export declare class Whatsapp { private api; private cache; constructor({ baseUrl, tenantId, onTokenExpired }: WhatsappOptions); challenge(): Promise<AuthsignalResponse<ChallengeResponse>>; verify({ code }: VerifyParams): Promise<AuthsignalResponse<VerifyResponse>>; } export {};