diff --git a/src/User/Query/SocialNetworkAccountQuery.php b/src/User/Query/SocialNetworkAccountQuery.php index eee6d348..d90ae72d 100644 --- a/src/User/Query/SocialNetworkAccountQuery.php +++ b/src/User/Query/SocialNetworkAccountQuery.php @@ -26,7 +26,7 @@ public function whereClient(AuthClientInterface $client) return $this->andWhere( [ 'provider' => $client->getId(), - 'client_id' => (string)$client->getUserAttributes()['id'], + 'client_id' => (string)$client->getUserId(), ] ); }