Skip to content

signInWithCustomToken API inconsistent? #244

@zhang-z

Description

@zhang-z

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions