var provider = new firebase.auth.TwitterAuthProvider(); firebase.auth().signInWithPopup(provider).then(function(result) { // This gives you a the Twitter OAuth