From cc78f4a6a3bd5b7274d9c9c55b1feebeadce5b8d Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 17:20:55 +0000 Subject: [PATCH] Changes Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com> --- src/components/mika/integrations/IntegrationCard.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/mika/integrations/IntegrationCard.tsx b/src/components/mika/integrations/IntegrationCard.tsx index 94be0d0..f622fae 100644 --- a/src/components/mika/integrations/IntegrationCard.tsx +++ b/src/components/mika/integrations/IntegrationCard.tsx @@ -24,16 +24,16 @@ export function IntegrationCard({ state, agentReady }: Props) { return; } setConnecting(true); - const { data, error } = await invokeFunction<{ authorize_url: string }>( + const { data, error } = await invokeFunction<{ auth_url: string }>( "oauth-start", { mcp_slug: mcp.slug }, ); setConnecting(false); - if (error || !data?.authorize_url) { + if (error || !data?.auth_url) { toast.error(error?.message ?? "Não foi possível iniciar a conexão."); return; } - window.location.href = data.authorize_url; + window.location.href = data.auth_url; } return (