sign out firebase auth flutter code example
Example 1: how to sign out user in flutter with firebase authentication
final FirebaseAuth _auth = FirebaseAuth.instance;
Future<void> _signOut() async {
await _auth.signOut();
}
Example 2: how to sign out user in flutter with firebase authentication
final FirebaseAuth _auth = FirebaseAuth.instance;
Future<void> _signOut() async {
await _auth.signOut();
await _googleSignIn.signOut();
}