gebeya-telegram-otp
Version:
Reusable Telegram phone verification components for React applications
19 lines • 817 B
TypeScript
import { TelegramConfig, TelegramUser, TelegramVerificationProviderProps } from '../types';
interface TelegramVerificationContextType {
supabaseClient: any;
telegramConfig: TelegramConfig;
user: TelegramUser | null;
session: any;
loading: boolean;
onSuccess?: (userData: any) => void;
onError?: (error: string) => void;
theme?: {
primaryColor?: string;
borderRadius?: string;
fontSize?: string;
};
}
export declare const useTelegramVerification: () => TelegramVerificationContextType;
export declare const TelegramVerificationProvider: ({ children, supabaseClient, telegramConfig, onSuccess, onError, theme }: TelegramVerificationProviderProps) => import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=TelegramVerificationContext.d.ts.map