logout method

Future<void> logout()

Logs out the currently authenticated user.

Implementation

Future<void> logout() async {
  try {
    await _auth.signOut();
  } catch (err) {
    throw AuthDataServiceException(
      message: err.toString(),
    );
  }
  try {
    await _googleSignIn.signOut();
  } catch (err) {
    debugPrint(err.toString());
  }
}