logout method

Future logout()

Sign out of the social accounts that have been used

Implementation

Future logout() async {
  log?.i('logout');

  try {
    _clearPendingData();
    await firebaseAuth.signOut();
    await _googleSignIn.signOut();
    await FacebookAuth.instance.logOut();
  } catch (e) {
    log?.e('Could not sign out of social account. $e');
  }
}