UNPKG

@authsignal/browser

Version:

<img width="1070" alt="Authsignal" src="https://raw.githubusercontent.com/authsignal/authsignal-browser/main/.github/images/authsignal.png">

15 lines (14 loc) 520 B
import { ApiClientOptions, ChallengeResponse, ErrorResponse, VerifyResponse } from "./types/shared"; export declare class WhatsappApiClient { tenantId: string; baseUrl: string; onTokenExpired?: () => void; constructor({ baseUrl, tenantId, onTokenExpired }: ApiClientOptions); challenge({ token }: { token: string; }): Promise<ChallengeResponse | ErrorResponse>; verify({ token, code }: { token: string; code: string; }): Promise<VerifyResponse | ErrorResponse>; }