UNPKG

rauth-client

Version:

A lightweight, framework-agnostic JavaScript/TypeScript library for adding reverse authentication via WhatsApp on the client side.

25 lines (24 loc) 587 B
export interface RauthInitParams { appId: string; phone: string; } export interface RauthSessionResponse { session_token: string; wa_link: string; qr_image_link: string; [key: string]: any; } export interface DeviceInfo { browser: string; platform: string; session_source: string; } export declare const rauth: { /** * Initialize a Rauth session * @param params {RauthInitParams} * @returns {Promise<RauthSessionResponse>} */ init({ appId, phone }: RauthInitParams): Promise<RauthSessionResponse>; }; export default rauth;