From fa879b8c7c7baac0e1ac7035e6a33e08ed72ff0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Wed, 18 May 2022 07:37:20 +0000 Subject: [PATCH] Fix Google OAuth (userID) --- src/Appwrite/Auth/OAuth2/Google.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Auth/OAuth2/Google.php b/src/Appwrite/Auth/OAuth2/Google.php index e675a1f861..fe29855339 100644 --- a/src/Appwrite/Auth/OAuth2/Google.php +++ b/src/Appwrite/Auth/OAuth2/Google.php @@ -114,7 +114,7 @@ class Google extends OAuth2 { $user = $this->getUser($accessToken); - return $user['id'] ?? ''; + return $user['sub'] ?? ''; } /**