protected function findUser(UserResponseInterface $response) { $username = $response->getEmail(); try { return $this->userProvider->loadUserByUsername($username); } catch (UsernameNotFoundException $e) { return null; } }