firebase auth sign out javascript code example
Example 1: firebase auth sign out javascript
firebase.auth().signOut().then(function() {
console.log('Signed Out');
}, function(error) {
console.error('Sign Out Error', error);
});
Example 2: firebase sign out
Future _signOut() async {
await _auth.signOut();
this.setState(() {
isLoading = false;
});
Navigator.of(context).pushAndRemoveUntil(
MaterialPageRoute(builder: (context) => MyApp()),
(Route route) => false);
}