( email: string, onSuccess: () => void, onError: (error: any) => void, )
| 139 | * @param onError - callback function to be executed on signup error |
| 140 | */ |
| 141 | const resetUserPassword = async ( |
| 142 | email: string, |
| 143 | onSuccess: () => void, |
| 144 | onError: (error: any) => void, |
| 145 | ) => { |
| 146 | await sendPasswordResetEmail(auth, email) |
| 147 | .then(() => { |
| 148 | // Password reset email sent! |
| 149 | onSuccess(); |
| 150 | }) |
| 151 | .catch((error) => { |
| 152 | onError(error); |
| 153 | }); |
| 154 | }; |
| 155 | |
| 156 | /** |
| 157 | * Check if the user is authenticated |
nothing calls this directly
no outgoing calls
no test coverage detected