-
-
Notifications
You must be signed in to change notification settings - Fork 553
Closed
Description
I'm using react-native + react-redux-firebase. After calling this.props.firebase.login({token: xxx})
, I got @@reactReduxFirebase/LOGIN_ERROR
.
Inspecting the code, I found the problem is here: https://github.com/prescottprue/react-redux-firebase/blob/master/src/actions/auth.js#L328
The code is expecting userData
to be a JSON string, which contains stsTokenManager. accessToken
. But in my project, the userData
is actually a JSON object as below:
{
"displayName": null,
"refreshToken": "......",
"providerId": "firebase",
"uid": "......",
"emailVerified": false,
"providerData": [],
"email": null,
"isAnonymous": false
}
Why is it behaving differently in my project?