@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
20 lines (19 loc) • 677 B
TypeScript
import { EnrollResponse, ChallengeResponse } from "./api/types/shared";
import { AuthsignalResponse, VerifyResponse } from "./types";
type EmailMagicLinkOptions = {
baseUrl: string;
tenantId: string;
onTokenExpired?: () => void;
};
type EnrollParams = {
email: string;
};
export declare class EmailMagicLink {
private api;
private cache;
constructor({ baseUrl, tenantId, onTokenExpired }: EmailMagicLinkOptions);
enroll({ email }: EnrollParams): Promise<AuthsignalResponse<EnrollResponse>>;
challenge(): Promise<AuthsignalResponse<ChallengeResponse>>;
checkVerificationStatus(): Promise<AuthsignalResponse<VerifyResponse>>;
}
export {};