close
0

How to Signout a user in Flutter with Firebase authentication

avatar
asked 14-09-2021

2 Answers


0
Future<void> _signOut() async {
  await FirebaseAuth.instance.signOut();
}
avatar
answered 14-09-2021

0

 Instances of FirebaseAuth

  final FirebaseAuth _firebaseAuth = FirebaseAuth.instance;

And Then

  _signOut() async {
    await _firebaseAuth.signOut();
   }
avatar
answered 14-09-2021