mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 09:16:46 +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;
|
||||
}
|
||||
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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue