@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) • 659 B
TypeScript
import { ApiClientOptions, ChallengeResponse, EnrollResponse, ErrorResponse, VerifyResponse } from "./types/shared";
export declare class EmailApiClient {
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>;
verify({ token, code }: {
token: string;
code: string;
}): Promise<VerifyResponse | ErrorResponse>;
}