@devries-cameron20 / composio Mirror · read-only / commits / ed17f6ff3
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, 03:15 UTC

fix(ts/core): add type assertion for OAuth status discriminated union

The computed status `"ACTIVE" | "INITIALIZING"` cannot satisfy the discriminated union type that expects a literal. Cast the return to ConnectionData since runtime values are correct and validated by tests.

jkomyno committed Mar 13, 2026 at 03:15 UTC ed17f6ff308b824d482cb65bf91a4900636363e9
1 file changed +2 -2
ts/packages/core/src/models/AuthScheme.ts
+2 -2
@@ -43,7 +43,7 @@ export class AuthScheme {
43 status: hasToken ? ConnectionStatuses.ACTIVE : ConnectionStatuses.INITIALIZING,
44 ...params,
45 },
46 - };
46 + } as ConnectionData;
47 }
48
49 /**
@@ -73,7 +73,7 @@ export class AuthScheme {
73 status: hasTokens ? ConnectionStatuses.ACTIVE : ConnectionStatuses.INITIALIZING,
74 ...params,
75 },
76 - };
76 + } as ConnectionData;
77 }
78
79 /**