According to documentation, I force a user to sign out with the method signOut()
.
This is what I have tried:
var rootRef = firebase.database().ref();
var loggedInUser = firebase.auth();
1. firebase.signOut();
2. loggedInUser.signOut();
3. rootRef.signOut();
4. signOut();
5. firebase.auth.signOut();
I get ... is not a function
for every one of the five above. I know there is no issue with my reference to the new Firebase, since firebase.database().ref();
and firebase.auth();
does not throw error. I have also migrated the app in the console.