Using new firebase 3.0.1 which was recently published by google.
Before, we had Firebase.unauth() method https://www.firebase.com/docs/web/api/firebase/una
Firebase.unauth()
Lukas Liesis has the correct firebase signOut() method but to resolve a rejected promise, I used .catch() instead.
.catch()
firebase.auth().signOut() .then(function() { // Sign-out successful. }) .catch(function(error) { // An error happened });