@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) • 694 B
TypeScript
import { ChallengeParams } from "../qr-code";
import { AuthsignalResponse } from "../types";
import { QrCodeChallengeResponse } from "../api/types/qr-code";
export interface QrHandler {
challenge(params: ChallengeParams): Promise<AuthsignalResponse<QrCodeChallengeResponse>>;
refresh(params: {
custom?: Record<string, unknown>;
}): Promise<void>;
disconnect(): void;
}
export declare abstract class BaseQrHandler implements QrHandler {
abstract challenge(params: ChallengeParams): Promise<AuthsignalResponse<QrCodeChallengeResponse>>;
abstract refresh(params: {
custom?: Record<string, unknown>;
}): Promise<void>;
abstract disconnect(): void;
}