prescottprue / react-redux-firebase

Redux bindings for Firebase. Includes React Hooks and Higher Order Components.
https://react-redux-firebase.com
MIT License
2.55k stars 559 forks source link

Password reset error is not serialized to state #1015

Closed djejaquino closed 3 years ago

djejaquino commented 3 years ago

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

When requesting password reset for unknown (not yet registered) e-mail, auth error is not properly populated.

import { useFirebase } from 'react-redux-firebase';
...
const firebase = useFirebase();
firebase.resetPassword('unkown@email.com'); 

Results in: image  What is the expected behavior? To have a properly populated state.firebase.authError with code and message properties.

Which versions of dependencies, and which browser and OS are affected by this issue? Did this work in previous versions or setups? Not applicable.