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
In JavaScript you can sign out the user with:
firebase.auth().signOut().then(function() { console.log('Signed Out'); }, function(error) { console.error('Sign Out Error', error); });