How do I sign out users in Firebase 3.0?

后端 未结 5 1599
甜味超标
甜味超标 2021-02-03 19:09

According to documentation, I force a user to sign out with the method signOut().

This is what I have tried:

var rootRef = firebase.database         


        
5条回答
  •  离开以前
    2021-02-03 19:50

    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);
    });
    

提交回复
热议问题