UNPKG

mind-link-ai-widget

Version:

A react widget for React Web and React-Native Mobile integrations.

22 lines 644 B
import React from 'react'; import type { ReactNode } from 'react'; export type AuthUser = { domainId: string; }; export type AuthContextType = { user: AuthUser | null; isAuthenticated: boolean; loading: boolean; error: string | null; requestOtp: (domainId: string) => Promise<void>; verifyOtp: (domainId: string, otp: string) => Promise<void>; logout: () => void; }; export declare const AuthProvider: React.FC<{ children: ReactNode; }>; export declare function useAuth(): AuthContextType; export declare const ProtectedRoute: React.FC<{ children: ReactNode; }>; //# sourceMappingURL=AuthContext.d.ts.map