how to make logged in user stay logged in in flutter firebase 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();
  }

Tags:

Misc Example