Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active July 28, 2017 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/a3ff0fa5925b2af85e70b24fd7fd5173 to your computer and use it in GitHub Desktop.
Save matthieu-D/a3ff0fa5925b2af85e70b24fd7fd5173 to your computer and use it in GitHub Desktop.
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