diff --git a/src/commands/configure.ts b/src/commands/configure.ts index e2b8b6451..d65908f5a 100644 --- a/src/commands/configure.ts +++ b/src/commands/configure.ts @@ -323,7 +323,7 @@ async function promptAuthConfig( if (oauthCreds) { await writeOAuthCredentials("google-antigravity", oauthCreds); next = applyAuthProfileConfig(next, { - profileId: "google-antigravity:default", + profileId: `google-antigravity:${oauthCreds.email ?? "default"}`, provider: "google-antigravity", mode: "oauth", }); diff --git a/src/commands/onboard-auth.ts b/src/commands/onboard-auth.ts index 3da496b34..8151bfca3 100644 --- a/src/commands/onboard-auth.ts +++ b/src/commands/onboard-auth.ts @@ -7,7 +7,7 @@ export async function writeOAuthCredentials( creds: OAuthCredentials, ): Promise { upsertAuthProfile({ - profileId: `${provider}:default`, + profileId: `${provider}:${creds.email ?? "default"}`, credential: { type: "oauth", provider, diff --git a/src/wizard/onboarding.ts b/src/wizard/onboarding.ts index 724dfec01..3ce8a0193 100644 --- a/src/wizard/onboarding.ts +++ b/src/wizard/onboarding.ts @@ -462,7 +462,7 @@ export async function runOnboardingWizard( if (oauthCreds) { await writeOAuthCredentials("google-antigravity", oauthCreds); nextConfig = applyAuthProfileConfig(nextConfig, { - profileId: "google-antigravity:default", + profileId: `google-antigravity:${oauthCreds.email ?? "default"}`, provider: "google-antigravity", mode: "oauth", });