getUser method

  1. @override
Future<User?> getUser()
override

Implementation

@override
Future<User?> getUser() async {
  User? user = _generalAuth.currentUser;
  if (!(user?.emailVerified ?? true)) {
    throw const UnverifiedMailException();
  }
  return user;
}