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'] ?? ''; } /**