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()
This statement logouts the user.
FirebaseAuth.getInstance().signOut();