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

23 lines (22 loc) 698 B
import { EnrollResponse, ChallengeResponse } from "./api/types/shared"; import { AuthsignalResponse, VerifyResponse } from "./types"; type EmailOptions = { baseUrl: string; tenantId: string; onTokenExpired?: () => void; }; type EnrollParams = { email: string; }; type VerifyParams = { code: string; }; export declare class Email { private api; private cache; constructor({ baseUrl, tenantId, onTokenExpired }: EmailOptions); enroll({ email }: EnrollParams): Promise<AuthsignalResponse<EnrollResponse>>; challenge(): Promise<AuthsignalResponse<ChallengeResponse>>; verify({ code }: VerifyParams): Promise<AuthsignalResponse<VerifyResponse>>; } export {};