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

18 lines (17 loc) 657 B
import { ApiClientOptions, ChallengeResponse, EnrollResponse, ErrorResponse, VerifyResponse } from "./types/shared"; export declare class EmailMagicLinkApiClient { tenantId: string; baseUrl: string; onTokenExpired?: () => void; constructor({ baseUrl, tenantId, onTokenExpired }: ApiClientOptions); enroll({ token, email }: { token: string; email: string; }): Promise<EnrollResponse | ErrorResponse>; challenge({ token }: { token: string; }): Promise<ChallengeResponse | ErrorResponse>; checkVerificationStatus({ token }: { token: string; }): Promise<VerifyResponse | ErrorResponse>; }