Merge pull request #10732 from appwrite/copilot/fix-google-token-disappears

Fix Google OAuth2 refresh token support
This commit is contained in:
Steven Nguyen 2025-11-06 10:28:02 -08:00 committed by GitHub
commit ef938a1c39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,7 +53,9 @@ class Google extends OAuth2
'redirect_uri' => $this->callback,
'scope' => \implode(' ', $this->getScopes()),
'state' => \json_encode($this->state),
'response_type' => 'code'
'response_type' => 'code',
'access_type' => 'offline',
'prompt' => 'consent'
]);
}