Open mrjogo opened 3 years ago
Actually, playing around a little more, it seems userData
is different types depending on the signup method. With createUser({ email: 'xxxx@xxxx.xxx', password: 'xxxx' })
it gets AuthType.UserCredential
, but with login({ provider: 'google' })
it gets AuthType.User
, or something like that.
Do you want to request a feature or report a bug?
bug
What is the current behavior?
The
userData
argument on theprofileFactory
callback is typed asAuthTypes.User
, however the object that gets passed to the callback isAuthTypes.UserCredential
.What is the expected behavior?
The type definition of
userData
should beAuthTypes.UserCredential
.Which versions of dependencies, and which browser and OS are affected by this issue? Did this work in previous versions or setups?
react-redux-firebase 3.7.0