Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
docs: add callbackUrl to custom auth config examples
Sushmithamalleshea4c7106f8e1
diff --git a/fern/pages/src/authentication/custom-auth-configs.mdx b/fern/pages/src/authentication/custom-auth-configs.mdxindex 0a4ad88dd..f8910ef60 100644--- a/fern/pages/src/authentication/custom-auth-configs.mdx+++ b/fern/pages/src/authentication/custom-auth-configs.mdx@@ -99,28 +99,34 @@ This auth config is now ready to be used in your application!connection_request = composio.connected_accounts.initiate(user_id="user_id",auth_config_id="ac_1234",+ callback_url="https://yourapp.com/oauth/callback")-print(connection_request)++# Redirect the user to connection_request.redirect_url+print(connection_request.redirect_url)# Wait for the connection to be establishedconnected_account = connection_request.wait_for_connection()print(connected_account)``````typescript TypeScript maxLines=60-const connReq = await composio.connectedAccounts.initiate(userId, "ac_1234");+const connReq = await composio.connectedAccounts.initiate(userId, "ac_1234", {+ callbackUrl: "https://yourapp.com/oauth/callback",+});+// Redirect the user to connReq.redirectUrlconsole.log(connReq.redirectUrl);const connection = await composio.connectedAccounts.waitForConnection(-connReq.id+ connReq.id);console.log(connection);-```</CodeGroup>+### White-labeling the OAuth Consent ScreenBy default the users will see an OAuth screen like the one below:@@ -173,6 +179,7 @@ def authorize_app(toolkit: str):connection_request = composio.connected_accounts.initiate(user_id=user_id,auth_config_id=auth_config_id,+ callback_url="https://yourapp.com/oauth/callback")return RedirectResponse(url=connection_request.redirect_url)```