UNPKG

gebeya-whatsapp-verify

Version:

Reusable WhatsApp phone verification components for React applications (Supabase Edge Function integration)

25 lines 1.04 kB
import { WhatsAppConfig, WhatsAppUser, WhatsAppVerificationProviderProps } from '../types'; interface WhatsAppVerificationContextType { supabaseClient: any; whatsappConfig?: WhatsAppConfig; user: WhatsAppUser | null; session: any; loading: boolean; onSuccess?: (userData: any) => void; onError?: (error: string) => void; theme?: { primaryColor?: string; borderRadius?: string; fontSize?: string; }; buttonConfig?: { defaultColor?: string; defaultVariant?: 'default' | 'outline' | 'secondary' | 'ghost'; defaultSize?: 'sm' | 'default' | 'lg' | 'xl'; customColors?: any; }; } export declare const useWhatsAppVerification: () => WhatsAppVerificationContextType; export declare const WhatsAppVerificationProvider: ({ children, supabaseClient, whatsappConfig, onSuccess, onError, theme, buttonConfig }: WhatsAppVerificationProviderProps) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=WhatsAppVerificationContext.d.ts.map