Skip to content

Instantly share code, notes, and snippets.

@enappd
Created August 13, 2020 07:00
Ionic 5 Facebook Login - On Login Success
onLoginSuccess(res: FacebookLoginResponse) {
const credential = firebase.auth.FacebookAuthProvider.credential(res.authResponse.accessToken);
this.fireAuth.signInWithCredential(credential)
.then((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