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: fix inconsistent OAuth detection between UI and markdown
Sushmitha Malleshd77d7c23da33
diff --git a/docs/components/toolkits/auth-details-section.tsx b/docs/components/toolkits/auth-details-section.tsxindex 02bfc8db2..2e37dac33 100644--- a/docs/components/toolkits/auth-details-section.tsx+++ b/docs/components/toolkits/auth-details-section.tsx@@ -7,6 +7,7 @@ import type { AuthConfigDetail, AuthConfigField } from '@/types/toolkit';interface AuthDetailsSectionProps {authConfigDetails: AuthConfigDetail[];+ authSchemes?: string[];composioManagedAuthSchemes?: string[];}@@ -57,7 +58,7 @@ function getAllFields(detail: AuthConfigDetail): AuthConfigField[] {];}-export function AuthDetailsSection({ authConfigDetails, composioManagedAuthSchemes }: AuthDetailsSectionProps) {+export function AuthDetailsSection({ authConfigDetails, authSchemes, composioManagedAuthSchemes }: AuthDetailsSectionProps) {if (!authConfigDetails || authConfigDetails.length === 0) {return null;}@@ -71,7 +72,7 @@ export function AuthDetailsSection({ authConfigDetails, composioManagedAuthSchemreturn null;}- const hasOAuth = validDetails.some((d) => d.mode.toLowerCase().includes('oauth'));+ const hasOAuth = authSchemes?.some((s) => s.toUpperCase().includes('OAUTH')) ?? false;return (<div className="space-y-3">diff --git a/docs/components/toolkits/toolkit-detail.tsx b/docs/components/toolkits/toolkit-detail.tsxindex 423a07a3a..80629d42b 100644--- a/docs/components/toolkits/toolkit-detail.tsx+++ b/docs/components/toolkits/toolkit-detail.tsx@@ -355,7 +355,7 @@ export function ToolkitDetail({ toolkit, tools, triggers, path, faq }: ToolkitDe{/* Authentication Details */}{toolkit.authConfigDetails && toolkit.authConfigDetails.length > 0 && (- <AuthDetailsSection authConfigDetails={toolkit.authConfigDetails} composioManagedAuthSchemes={toolkit.composioManagedAuthSchemes} />+ <AuthDetailsSection authConfigDetails={toolkit.authConfigDetails} authSchemes={toolkit.authSchemes} composioManagedAuthSchemes={toolkit.composioManagedAuthSchemes} />)}{/* FAQ */}