MCPcopy
hub / github.com/holaboss-ai/holaOS / ProxyWhoamiConfig

Interface ProxyWhoamiConfig

apps/desktop/electron/main.ts:11235–11240  ·  view source on GitHub ↗

* Per-provider whoami via Composio proxy. When the toolkit's response * shape differs from the generic identity columns, we read the * provider's native user-me response and project handle / displayName / * avatarUrl out. Keep this table small — only providers where the * generic Composio whoami

Source from the content-addressed store, hash-verified

11233 * actually need a proxy fallback.
11234 */
11235interface ProxyWhoamiConfig {
11236 url: string;
11237 method: "GET" | "POST";
11238 body?: unknown;
11239 extract: (data: unknown) => Partial<ExtractedIdentity>;
11240}
11241
11242function pickString(value: unknown): string | null {
11243 return trimOrNull(typeof value === "string" ? value : null);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected