Merge pull request #330 from christyjacob4/master
chore: updated the oAuth token url for google
This commit is contained in:
commit
fc9b7f6157
|
@ -21,7 +21,8 @@ class Google extends OAuth2
|
||||||
*/
|
*/
|
||||||
protected $scopes = [
|
protected $scopes = [
|
||||||
'https://www.googleapis.com/auth/userinfo.email',
|
'https://www.googleapis.com/auth/userinfo.email',
|
||||||
'https://www.googleapis.com/auth/userinfo.profile'
|
'https://www.googleapis.com/auth/userinfo.profile',
|
||||||
|
'openid'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -60,7 +61,7 @@ class Google extends OAuth2
|
||||||
{
|
{
|
||||||
$accessToken = $this->request(
|
$accessToken = $this->request(
|
||||||
'POST',
|
'POST',
|
||||||
'https://www.googleapis.com/oauth2/'.$this->version.'/token?'.http_build_query([
|
'https://oauth2.googleapis.com/token?'.http_build_query([
|
||||||
'code' => $code,
|
'code' => $code,
|
||||||
'client_id' => $this->appID,
|
'client_id' => $this->appID,
|
||||||
'client_secret' => $this->appSecret,
|
'client_secret' => $this->appSecret,
|
||||||
|
|
Loading…
Reference in a new issue