@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) • 610 B
TypeScript
import { ApiClientOptions, ErrorResponse } from "./types/shared";
import { PushChallengeResponse, PushVerifyResponse } from "./types/push";
export declare class PushApiClient {
tenantId: string;
baseUrl: string;
onTokenExpired?: () => void;
constructor({ baseUrl, tenantId, onTokenExpired }: ApiClientOptions);
challenge({ action, token }: {
action: string;
token: string;
}): Promise<PushChallengeResponse | ErrorResponse>;
verify({ challengeId, token, }: {
challengeId: string;
token: string;
}): Promise<PushVerifyResponse | ErrorResponse>;
}