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.

fix: connected account circular reference bug

angrybaybladef1fbb123f2b0
diff --git a/python/composio/core/models/connected_accounts.py b/python/composio/core/models/connected_accounts.py
index 9e64d79af..46edaf58e 100644
--- a/python/composio/core/models/connected_accounts.py
+++ b/python/composio/core/models/connected_accounts.py
@@ -325,10 +325,10 @@ class ConnectedAccounts:
"""
connection: dict[str, t.Any] = {"user_id": user_id}
if callback_url is not None:
- connection["callback_url"] = connection
+ connection["callback_url"] = callback_url
if config is not None:
- connection["state"] = connection
+ connection["state"] = config
response = self._client.connected_accounts.create(
auth_config={"id": auth_config_id},