fix(google-antigravity): use 127.0.0.1 instead of localhost for OAuth redirect

Google's OAuth policy blocks HTTP localhost redirects but allows loopback
IP addresses. This fixes authentication failures with the error:
"You can't sign in to this app because it doesn't comply with Google's
OAuth 2.0 policy for keeping apps secure."

Fixes #2463
This commit is contained in:
brian033 2026-01-27 10:23:08 +08:00
parent 5796a92231
commit 1213ca542a

View File

@ -9,7 +9,7 @@ const CLIENT_ID = decode(
"MTA3MTAwNjA2MDU5MS10bWhzc2luMmgyMWxjcmUyMzV2dG9sb2poNGc0MDNlcC5hcHBzLmdvb2dsZXVzZXJjb250ZW50LmNvbQ==",
);
const CLIENT_SECRET = decode("R09DU1BYLUs1OEZXUjQ4NkxkTEoxbUxCOHNYQzR6NnFEQWY=");
const REDIRECT_URI = "http://localhost:51121/oauth-callback";
const REDIRECT_URI = "http://127.0.0.1:51121/oauth-callback";
const AUTH_URL = "https://accounts.google.com/o/oauth2/v2/auth";
const TOKEN_URL = "https://oauth2.googleapis.com/token";
const DEFAULT_PROJECT_ID = "rising-fact-p41fc";