Skip to content

Instantly share code, notes, and snippets.

@djabif
Created March 18, 2018 20:58
Show Gist options
  • Save djabif/8f4bb8d89e2a12ab969106568cead916 to your computer and use it in GitHub Desktop.
Save djabif/8f4bb8d89e2a12ab969106568cead916 to your computer and use it in GitHub Desktop.
doFacebookLogin(){
return new Promise<any>((resolve, reject) => {
let provider = new firebase.auth.FacebookAuthProvider();
this.afAuth.auth
.signInWithPopup(provider)
.then(res => {
resolve(res);
}, err => {
console.log(err);
reject(err);
})
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment