Merge pull request #51 from calclavia/patch-1

Corrected FB Login Example
This commit is contained in:
Elliot Hesp 2017-04-13 08:46:44 +01:00 committed by GitHub
commit 4aaddde313
1 changed files with 3 additions and 2 deletions

View File

@ -301,8 +301,9 @@ LoginManager
}
console.log(`Login success with permissions: ${result.grantedPermissions.toString()}`);
// get the access token
const data = AccessToken.getCurrentAccessToken();
return AccessToken.getCurrentAccessToken();
})
.then(data => {
// create a new firebase credential with the token
const credential = firebase.auth.FacebookAuthProvider.credential(data.accessToken);