Skip to content

Commit e78cf4b

Browse files
Utku Kaynardavideast
authored andcommitted
Update Auth with Ionic.md
Corrected : Facebook.login doesn't return promise unless it's declared.
1 parent 1bf0191 commit e78cf4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Auth-with-Ionic2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ export class AuthService {
490490
491491
signInWithFacebook(): firebase.Promise<FirebaseAuthState> {
492492
if (this.platform.is('cordova')) {
493-
Facebook.login(['email', 'public_profile']).then(res => {
493+
return Facebook.login(['email', 'public_profile']).then(res => {
494494
const facebookCredential = firebase.auth.FacebookAuthProvider.credential(res.authResponse.accessToken);
495495
return firebase.auth().signInWithCredential(facebookCredential);
496496
});

0 commit comments

Comments
 (0)