Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 23:30 UTC
fix: enable multiAccount in TS multi-connect example
Match the Python example by enabling multi-account mode in the TypeScript "Connecting multiple accounts" code block. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Zen Agent <zen@composio.dev>
abir committed
Apr 10, 2026 at 08:39 UTC
de296f12b1687afd880ac6774e263ffddde492ca
1 file changed
+5
-1
docs/content/docs/managing-multiple-connected-accounts.mdx
+5
-1
@@ -73,8 +73,12 @@ personal_connection = personal_auth.wait_for_connection()
73
```typescript
74
import { Composio } from '@composio/core';
75
const composio = new Composio({ apiKey: 'your_api_key' });
76
-const session = await composio.create("user_123");
76
// ---cut---
77
+const session = await composio.create("user_123", {
78
+ toolkits: ["gmail"],
79
+ multiAccount: { enable: true },
80
+});
81
+
82
// Connect work account
83
const workAuth = await session.authorize("gmail", { alias: "work-gmail" });
84
console.log(`Connect work Gmail: ${workAuth.redirectUrl}`);