| 23 | } |
| 24 | |
| 25 | interface AuthContextProps { |
| 26 | onLoginSuccess: (userID: string) => void; |
| 27 | onLoginError: (error: any) => void; |
| 28 | onGoogleLoginSucess: (userID: string) => void; |
| 29 | onGoogleLoginError: (error: any) => void; |
| 30 | onSignupSuccess: () => void; |
| 31 | onSignupError: (error: any) => void; |
| 32 | onGoogleSignupSucess: () => void; |
| 33 | onGoogleSignupError: (error: any) => void; |
| 34 | onResetPasswordSuccess: () => void; |
| 35 | onResetPasswordError: (error: any) => void; |
| 36 | setAuthDialogState: (state: AuthDialogState) => void; |
| 37 | } |
| 38 | |
| 39 | export const AuthContext = createContext<AuthContextProps>({ |
| 40 | onLoginSuccess: () => { }, |
nothing calls this directly
no outgoing calls
no test coverage detected