protected function updateProviderIdentity($providerAlias, $details) { $identity = $this->identities->getByProvider($providerAlias, $details); $identity->access_token = $details->access_token; $this->identities->store($identity); }