@devries-cameron20 / composio-1 / commits / e7b797220
Fork 0

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

docs: improve bearer token section — clarify use case, add auth config link

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Dhawal Upadhyay committed Apr 10, 2026 at 13:55 UTC e7b797220938f37779c5d7b5125b8fd44b17f813
1 file changed +2 -2
docs/content/docs/importing-existing-connections.mdx
+2 -2
@@ -74,9 +74,9 @@ console.log('Connected:', connection.id);
74
75 ## Bearer tokens
76
77 -If you already have an access token for a service, you can import it directly as a bearer token. This works with **all toolkits that support OAuth2 or S2S auth** — Gmail, GitHub, Slack, Google Docs, and more — so you can skip OAuth app setup entirely. Any additional parameters the toolkit supports (e.g., `subdomain`, `base_url`) work the same way.
77 +If you already have an access token for a service (e.g., from an OAuth flow you manage), you can pass it directly to Composio as a bearer token. This works with **all toolkits that support OAuth2 or S2S auth** — Gmail, GitHub, Slack, Google Docs, and more. Any additional parameters the toolkit supports (e.g., `subdomain`, `base_url`) work the same way.
78
79 -Since access tokens typically expire, you'll need to keep them updated. Use the [PATCH endpoint](#updating-credentials) to push a refreshed token whenever it changes on your end (e.g., after an OAuth refresh flow).
79 +After [creating an auth config](/docs/auth-configuration/programmatic-auth-configs) with `authScheme: "BEARER_TOKEN"`, use the snippet below to create a connected account. Since access tokens typically expire, use the [PATCH endpoint](#updating-credentials) to push a refreshed token whenever it changes on your end.
80
81 <Tabs groupId="language" items={['Python', 'TypeScript']} persist>
82 <Tab value="Python">