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 ( diff --git a/src/routeTree.gen.ts b/src/routeTree.gen.ts index 0bb5aca..0fe84b5 100644 --- a/src/routeTree.gen.ts +++ b/src/routeTree.gen.ts @@ -670,12 +670,3 @@ const rootRouteChildren: RootRouteChildren = { export const routeTree = rootRouteImport ._addFileChildren(rootRouteChildren) ._addFileTypes() - -import type { getRouter } from './router.tsx' -import type { createStart } from '@tanstack/react-start' -declare module '@tanstack/react-start' { - interface Register { - ssr: true - router: Awaited> - } -}