diff --git a/src/EventListener/UserInfoListener.php b/src/EventListener/UserInfoListener.php index 56f3b7b..e24a9ca 100644 --- a/src/EventListener/UserInfoListener.php +++ b/src/EventListener/UserInfoListener.php @@ -65,7 +65,7 @@ public static function getSubscribedEvents() protected function defaultUserCallback($token, $rawUserInfo, $service) { - if (!is_array($rawUserInfo)) { + if (!is_array($rawUserInfo) || isset($rawUserInfo['error'])) { return; }