Skip to content

Commit

Permalink
determine whether the code is valid.
Browse files Browse the repository at this point in the history
  • Loading branch information
vt-nwei authored and m1guelpf committed Jan 10, 2019
1 parent dee717f commit 44bc75b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Provider.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit 44bc75b

Please sign in to comment.