protected function getExistingUser($providerAlias, $details) { $identity = $this->identities->getByProvider($providerAlias, $details); return $this->users->findByIdentity($identity); }