From 290b52c77f443b8f893961f725371f3aa962561f Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Thu, 21 May 2020 02:21:21 +0530 Subject: [PATCH] feat: updated google oAuth token urls --- src/Appwrite/Auth/OAuth2/Google.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Auth/OAuth2/Google.php b/src/Appwrite/Auth/OAuth2/Google.php index ae888d554e..068ad493b9 100644 --- a/src/Appwrite/Auth/OAuth2/Google.php +++ b/src/Appwrite/Auth/OAuth2/Google.php @@ -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,