Merge pull request #269 from mukhtharcm/feat/multi-account-roundrobin
feat: Multi-account OAuth with round-robin rotation
This commit is contained in:
@@ -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",
|
||||
});
|
||||
|
||||
@@ -7,7 +7,7 @@ export async function writeOAuthCredentials(
|
||||
creds: OAuthCredentials,
|
||||
): Promise<void> {
|
||||
upsertAuthProfile({
|
||||
profileId: `${provider}:default`,
|
||||
profileId: `${provider}:${creds.email ?? "default"}`,
|
||||
credential: {
|
||||
type: "oauth",
|
||||
provider,
|
||||
|
||||
Reference in New Issue
Block a user