@devries-cameron20 / composio Mirror · read-only / commits / d77d7c23d
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.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 04:30 UTC

docs: fix inconsistent OAuth detection between UI and markdown

Use toolkit.authSchemes as the single source of truth for hasOAuth in both the UI badge and markdown export, instead of the UI deriving it from filtered authConfigDetails which could diverge. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmitha Mallesh committed Mar 4, 2026 at 23:01 UTC d77d7c23da338ca70751e9ffbae9bbbf141b1fd9
2 files changed +4 -3
docs/components/toolkits/auth-details-section.tsx
+3 -2
@@ -7,6 +7,7 @@ import type { AuthConfigDetail, AuthConfigField } from '@/types/toolkit';
7
8 interface AuthDetailsSectionProps {
9 authConfigDetails: AuthConfigDetail[];
10 + authSchemes?: string[];
11 composioManagedAuthSchemes?: string[];
12 }
13
@@ -57,7 +58,7 @@ function getAllFields(detail: AuthConfigDetail): AuthConfigField[] {
58 ];
59 }
60
60 -export function AuthDetailsSection({ authConfigDetails, composioManagedAuthSchemes }: AuthDetailsSectionProps) {
61 +export function AuthDetailsSection({ authConfigDetails, authSchemes, composioManagedAuthSchemes }: AuthDetailsSectionProps) {
62 if (!authConfigDetails || authConfigDetails.length === 0) {
63 return null;
64 }
@@ -71,7 +72,7 @@ export function AuthDetailsSection({ authConfigDetails, composioManagedAuthSchem
72 return null;
73 }
74
74 - const hasOAuth = validDetails.some((d) => d.mode.toLowerCase().includes('oauth'));
75 + const hasOAuth = authSchemes?.some((s) => s.toUpperCase().includes('OAUTH')) ?? false;
76
77 return (
78 <div className="space-y-3">
docs/components/toolkits/toolkit-detail.tsx
+1 -1
@@ -355,7 +355,7 @@ export function ToolkitDetail({ toolkit, tools, triggers, path, faq }: ToolkitDe
355
356 {/* Authentication Details */}
357 {toolkit.authConfigDetails && toolkit.authConfigDetails.length > 0 && (
358 - <AuthDetailsSection authConfigDetails={toolkit.authConfigDetails} composioManagedAuthSchemes={toolkit.composioManagedAuthSchemes} />
358 + <AuthDetailsSection authConfigDetails={toolkit.authConfigDetails} authSchemes={toolkit.authSchemes} composioManagedAuthSchemes={toolkit.composioManagedAuthSchemes} />
359 )}
360
361 {/* FAQ */}