Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot] 2026-05-25 17:20:55 +00:00
parent e45faaaa2f
commit cc78f4a6a3

View file

@ -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 (