logout method

Future<void> logout()

Logout for the current firebase instance. If already logged out, will print error and return.

Implementation

Future<void> logout() async {
  if (currentUser == null) {
    'Cannot logout of an already signed out account'.logError();
    return;
  }

  await inqvineFirebase.firebaseAuth.signOut();
  'Logged out successfully'.logInfo();
}