According to documentation, I force a user to sign out with the method signOut()
.
This is what I have tried:
var rootRef = firebase.database
I don't know if I correctly understood, but if you want to sign out every user signed in: That's not possible since the code is running on the client and the auth state refers to the client running it.
You can't access every client connected to the firebase auth service since it would mean running code on the server side.
However there's an option to specify the duration of a session, which is the remember parameter in the auth section.