@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
26 lines (25 loc) • 838 B
TypeScript
import { AuthenticationResponseJSON, RegistrationResponseJSON } from "@simplewebauthn/types";
import { AuthsignalResponse } from "./types";
import { SecurityKeyApiClient } from "./api/security-key-api-client";
type SecurityKeyOptions = {
baseUrl: string;
tenantId: string;
onTokenExpired?: () => void;
};
type EnrollResponse = {
token?: string;
registrationResponse?: RegistrationResponseJSON;
};
type VerifyResponse = {
isVerified: boolean;
token?: string;
authenticationResponse?: AuthenticationResponseJSON;
};
export declare class SecurityKey {
api: SecurityKeyApiClient;
private cache;
constructor({ baseUrl, tenantId, onTokenExpired }: SecurityKeyOptions);
enroll(): Promise<AuthsignalResponse<EnrollResponse>>;
verify(): Promise<AuthsignalResponse<VerifyResponse>>;
}
export {};