Fix Gemini OAuth onboarding failure (#8905)

Signed-off-by: Angie Jones <jones.angie@gmail.com>
This commit is contained in:
Angie Jones
2026-04-29 22:45:17 -06:00
committed by GitHub
parent 66692e9517
commit 6cdd2473ee
2 changed files with 21 additions and 2 deletions
@@ -213,9 +213,16 @@ export default function ProviderConfigurationModal({
}
}
}
await configureProviderOauth({
const oauthResult = await configureProviderOauth({
path: { name: provider.name },
});
if (oauthResult.error) {
const err = oauthResult.error as Record<string, unknown>;
const errDetail = typeof oauthResult.error === 'string'
? oauthResult.error
: (err?.message as string) ?? (err?.detail as string) ?? JSON.stringify(oauthResult.error);
throw new Error(errDetail);
}
if (onConfigured) {
onConfigured(provider);
} else {