diff --git a/Provider.php b/Provider.php index b5225b2..0566274 100755 --- a/Provider.php +++ b/Provider.php @@ -130,7 +130,9 @@ public function getAccessTokenResponse($code) ]); $this->credentialsResponseBody = json_decode($response->getBody(), true); - $this->openId = $this->credentialsResponseBody['openid']; + if (isset($this->credentialsResponseBody['openid'])){ + $this->openId = $this->credentialsResponseBody['openid']; + } return $this->credentialsResponseBody; }