UNPKG

naim-firebase-auth-wrapper

Version:

React components and hooks for Firebase Authentication and Firestore with Mantine UI

22 lines 908 B
/** * Hook to access authentication context */ export declare const useAuth: () => { signInWithGoogle: () => Promise<import("firebase/auth").UserCredential>; signInWithEmail: (email: string, password: string) => Promise<import("firebase/auth").UserCredential>; signUp: (email: string, password: string, displayName?: string) => Promise<import("firebase/auth").UserCredential>; updateUserPassword: (currentPassword: string, newPassword: string) => Promise<void>; signOut: () => Promise<void>; forgotPassword: (email: string) => Promise<void>; user: any; loading: boolean; error: Error | null; auth: any; app: any; db: any; organizations: import("..").Organization[]; loadOrganizations: () => Promise<void>; currentOrganization?: string | null; setCurrentOrganization?: (orgId: string) => Promise<void>; }; //# sourceMappingURL=useAuth.d.ts.map