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.

chore: modify authentication snippet

[email protected]8c662002705f
diff --git a/fern/docs.yml b/fern/docs.yml
index 8948b8bb8..103fca0f3 100644
--- a/fern/docs.yml
+++ b/fern/docs.yml
@@ -23,15 +23,11 @@ typography:
paths:
- path: assets/Inter-Medium.woff2
weight: '500'
- # - path: assets/Roobert-Regular.woff2
- # weight: '400'
headingsFont:
name: Inter
paths:
- path: assets/Inter-Medium.woff2
weight: '500'
- # - path: assets/Roobert-Regular.woff2
- # weight: '400'
codeFont:
name: IBM Plex Mono
paths:
diff --git a/fern/snippets/tool-calling/python/auth-tools.py b/fern/snippets/tool-calling/python/auth-tools.py
index 027d9f6cf..da2f3661e 100644
--- a/fern/snippets/tool-calling/python/auth-tools.py
+++ b/fern/snippets/tool-calling/python/auth-tools.py
@@ -7,7 +7,7 @@ composio = Composio()
# Create a new connected account
connection_request = composio.connected_accounts.initiate(
- user_id=user_id, auth_config_id=linear_auth_config_id, config=auth_scheme.oauth2()
+ user_id=user_id, auth_config_id=linear_auth_config_id, config={"auth_scheme": "OAUTH2"}
)
print(connection_request.redirect_url)