From e24fd7b64eee977341e2716c65d97d5fb9da4f51 Mon Sep 17 00:00:00 2001 From: Henry Mao Date: Wed, 12 Apr 2017 19:26:53 -0700 Subject: [PATCH] Corrected FB Login Example --- docs/api/authentication.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/api/authentication.md b/docs/api/authentication.md index e73c7cab..83dd686c 100644 --- a/docs/api/authentication.md +++ b/docs/api/authentication.md @@ -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);