According to documentation, I force a user to sign out with the method signOut().
signOut()
This is what I have tried:
var rootRef = firebase.database
firebase.auth().signOut()
simply it works for me!