Skip to content

Instantly share code, notes, and snippets.

@bunyy
Last active May 24, 2019 12:54
onLoginSuccess(res: FacebookLoginResponse) {
const { token } = res;
const credential = firebase.auth.FacebookAuthProvider.credential(res.authResponse.accessToken);
this.fireAuth.auth.signInWithCredential(credential)
.then((response) => {
console.log(response);
this.router.navigate(["/profile"]);
this.loading.dismiss();
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment