oauth-google
All checks were successful
Deploy on push / deploy (push) Successful in 2m57s

This commit is contained in:
2025-09-28 20:53:42 +03:00
parent c338bdc683
commit 147e227fa0

View File

@@ -769,6 +769,10 @@ async def oauth_callback_http(request: Request) -> JSONResponse | RedirectRespon
"code_verifier": code_verifier,
}
# Google требует client_secret даже при использовании PKCE
if hasattr(client, "client_secret") and client.client_secret:
token_data["client_secret"] = client.client_secret
async with httpx.AsyncClient() as http_client:
response = await http_client.post(
token_endpoint, data=token_data, headers={"Accept": "application/json"}