mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 11:56:45 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
e45faaaa2f
commit
cc78f4a6a3
1 changed files with 3 additions and 3 deletions
|
|
@ -24,16 +24,16 @@ export function IntegrationCard({ state, agentReady }: Props) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setConnecting(true);
|
setConnecting(true);
|
||||||
const { data, error } = await invokeFunction<{ authorize_url: string }>(
|
const { data, error } = await invokeFunction<{ auth_url: string }>(
|
||||||
"oauth-start",
|
"oauth-start",
|
||||||
{ mcp_slug: mcp.slug },
|
{ mcp_slug: mcp.slug },
|
||||||
);
|
);
|
||||||
setConnecting(false);
|
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.");
|
toast.error(error?.message ?? "Não foi possível iniciar a conexão.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.location.href = data.authorize_url;
|
window.location.href = data.auth_url;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue