Last active
July 28, 2017 19:55
-
-
Save matthieu-D/a3ff0fa5925b2af85e70b24fd7fd5173 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onSuccess = (response) => { | |
const twitterCredential = firebase.auth.TwitterAuthProvider.credential(response.token, response.secret); | |
this.afAuth.auth.signInWithCredential(twitterCredential) | |
.then(res => { | |
this.user = res; | |
}) | |
.catch(error => console.log('error', error)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment