1
0
Fork 0
mirror of synced 2024-06-03 03:14:50 +12:00

feat: updated google oAuth token urls

This commit is contained in:
Christy Jacob 2020-05-21 02:21:21 +05:30
parent 114742c92f
commit 290b52c77f

View file

@ -21,7 +21,8 @@ class Google extends OAuth2
*/
protected $scopes = [
'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(
'POST',
'https://www.googleapis.com/oauth2/'.$this->version.'/token?'.http_build_query([
'https://oauth2.googleapis.com/token?'.http_build_query([
'code' => $code,
'client_id' => $this->appID,
'client_secret' => $this->appSecret,