Fix Gemini OAuth onboarding failure (#8905)
Signed-off-by: Angie Jones <jones.angie@gmail.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user