Skip to content

Possible Unhandled Promise Rejection #269

@kaushikdas0

Description

@kaushikdas0

Hello,
I am trying to use firestack with the official FB React native package. Here is my code.

<LoginButton
          onLoginFinished={
            (error, result) => {
              if (error) {
                alert("login has error: " + result.error);
              
              } else if (result.isCancelled) {
                alert("login is cancelled.");
              
              } else {
              AccessToken.getCurrentAccessToken().then(
                  (data) => {
                    console.log("Data is "+ data); 
                    firestack.auth.signInWithProvider('facebook', data.accessToken, '') // facebook need only access token.
                      .then((user)=>{
                        console.log("Inside ");
                        console.log(user); 
                      }) 
                  }
                )
              }
            }
          }
          onLogoutFinished={() => console.log("Logged Out") }/>

I am getting error as follows:
Possible Unhandled Promise Rejection (id: 0)

I have verified the fb integration without firestack and its working fine. So seems an issue with the firestack integration. Any help to debug this issue?

This is for an Android build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions