@authsignal/browser
Version:
<img width="1070" alt="Authsignal" src="https://raw.githubusercontent.com/authsignal/authsignal-browser/main/.github/images/authsignal.png">
17 lines (16 loc) • 636 B
TypeScript
import { ApiClientOptions, ErrorResponse } from "./types/shared";
import { QrCodeChallengeResponse, QrCodeVerifyResponse } from "./types/qr-code";
export declare class QrCodeApiClient {
tenantId: string;
baseUrl: string;
constructor({ baseUrl, tenantId }: ApiClientOptions);
challenge({ action, token, custom, }: {
action: string;
token?: string;
custom?: Record<string, unknown>;
}): Promise<QrCodeChallengeResponse | ErrorResponse>;
verify({ challengeId, deviceCode, }: {
challengeId: string;
deviceCode: string;
}): Promise<QrCodeVerifyResponse | ErrorResponse>;
}