-
Notifications
You must be signed in to change notification settings - Fork 128
Closed
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels