signOut method

Future<void> signOut()

Signs out the user from all accounts.

This method signs the user out of Firebase and Google (if signed in).

Implementation

Future<void> signOut() async {
  try {
    await auth.signOut();
    await googleSignIn.signOut();
  } catch (e) {
    print('Error signing out: $e');
  }
}