Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

auth page redo

Sushmithamalleshfa627af4c1d8
diff --git a/fern/pages/src/tool-router/authentication.mdx b/fern/pages/src/tool-router/authentication.mdx
index 744183acf..4af4aaf8b 100644
--- a/fern/pages/src/tool-router/authentication.mdx
+++ b/fern/pages/src/tool-router/authentication.mdx
@@ -6,53 +6,39 @@ keywords: "authentication, tool router, oauth, api key, connected accounts"
hide-nav-links: false
---
-Tool Router automatically generates [Connect Link](/docs/authenticating-tools#hosted-authentication-connect-link) URLs when tools require authentication. Users complete OAuth or enter credentials on this hosted page.
+Tool Router handles authentication through [Connect Links](/docs/authenticating-tools#hosted-authentication-connect-link), hosted pages where users complete OAuth or enter credentials.
## In-chat authentication
-By default, Tool Router includes the `COMPOSIO_MANAGE_CONNECTIONS` meta-tool. When the agent tries to execute a tool and the user hasn't connected that account, the agent prompts them with a Connect Link URL.
+By default, when a tool requires authentication, the agent prompts the user with a Connect Link. The user authenticates and confirms in chat.
-The user clicks the link, authenticates in the hosted UI, and confirms in chat. The agent then retries the action.
-
-This flow works well for chat applications where users interact directly with the agent. For details on configuring this flow, see [Using in-chat authentication](/tool-router/using-in-chat-authentication).
+This flow works well for chat applications where users interact directly with the agent. See [Using in-chat authentication](/tool-router/using-in-chat-authentication).
## Manual authentication
-For applications that manage authentication outside of chat, disable in-chat auth and use `session.authorize()` to generate Connect Link URLs.
-
-This flow works well for:
-- Pre-authenticating users before they start chatting
-- Building custom connection UIs
+For apps that manage auth outside of chat, use `session.authorize()` to generate Connect Links programmatically.
-For implementation details, see [Manually authenticating users](/tool-router/manually-authenticating-users).
+Use this when you want users to connect accounts during onboarding, or when building a custom connections page. See [Manually authenticating users](/tool-router/manually-authenticating-users).
## How Tool Router manages auth configs
When executing a tool, Tool Router needs an auth config to find or create a connected account. It handles this automatically:
-1. If you provide an `authConfigs` override, it uses that
-2. Otherwise, it looks for an auth config it previously created for this toolkit
-3. If none exists, it creates one using Composio managed auth and tags it for reuse
-4. Future sessions automatically reuse that auth config
+1. Uses your `authConfigs` override if provided
+2. Otherwise, reuses an auth config it previously created for this toolkit
+3. If none exists, creates one using Composio managed auth
-This means you don't need to create auth configs manually for most toolkits. Tool Router creates and manages them for you.
+You don't need to create auth configs manually for most toolkits.
## Supported auth methods
-Tool Router can automatically create auth configs for:
-
-- **Composio managed OAuth** - GitHub, Gmail, Slack, and most OAuth toolkits. Composio provides the OAuth credentials.
-- **API key auth** - Users provide their own API keys via Connect Link.
+Tool Router supports **Composio managed OAuth** (GitHub, Gmail, Slack, and most toolkits) and **API key auth** (users enter their own keys via Connect Link).
<Note>
-Toolkits without Composio managed auth require you to create an auth config first. See [Configuring custom auth configs](/docs/tool-router/configuring-custom-auth-configs).
+Toolkits without Composio managed auth require a custom auth config. See [Configuring custom auth configs](/tool-router/configuring-custom-auth-configs).
</Note>
## White-labeling
-To show your own branding on OAuth consent screens instead of Composio's, create your own OAuth app and pass the auth config ID in your session. See [White-labeling authentication](/tool-router/white-labeling-authentication).
-
-<Tip>
-For step-by-step guides on creating OAuth apps for specific services, see [composio.dev/auth](https://composio.dev/auth).
-</Tip>
+Show your own branding on OAuth consent screens by creating your own OAuth app. See [White-labeling authentication](/tool-router/white-labeling-authentication).