@devries-cameron20 / composio-1 / commits / 8a968074d
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.

chore(sdk-ts): drop internal-ticket reference from code comments

Composio committed May 4, 2026 at 10:55 UTC 8a968074d5eeaef9bee532ec0c6356500d52c51a
1 file changed +11 -11
ts/packages/core/src/models/ConnectedAccounts.ts
+11 -11
@@ -45,7 +45,7 @@ import {
45 import logger from '../utils/logger';
46 import { ConnectionData } from '../types/connectedAccountAuthStates.types';
47
48 -// SEC-339: schemes that take the redirectable OAuth path on the legacy
48 +// Schemes that take the redirectable OAuth path on the legacy
49 // `POST /api/v3/connected_accounts` endpoint, and so are subject to the
50 // 2026-05-08 / 2026-07-03 retirement when the auth config is Composio-managed.
51 const LEGACY_RETIRING_OAUTH_SCHEMES = new Set(['OAUTH1', 'OAUTH2', 'DCR_OAUTH']);
@@ -232,10 +232,10 @@ export class ConnectedAccounts {
232 try {
233 response = await this.client.connectedAccounts.create(createParams);
234 } catch (error) {
235 - // SEC-339: When the server has flipped this org to the retired path,
236 - // the legacy endpoint returns 400 with a stable migration message.
237 - // Surface it as a typed error so callers get an actionable hint instead
238 - // of a generic BadRequestError.
235 + // When the server has flipped this org to the retired path, the legacy
236 + // endpoint returns 400 with a stable migration message. Surface it as
237 + // a typed error so callers get an actionable hint instead of a generic
238 + // BadRequestError.
239 if (
240 error instanceof BadRequestError &&
241 typeof error.message === 'string' &&
@@ -249,12 +249,12 @@ export class ConnectedAccounts {
249 throw error;
250 }
251
252 - // SEC-339: Warn once per process when a successful initiate() lands on
253 - // the redirectable-OAuth path. We can't tell from the response alone
254 - // whether the auth config is Composio-managed (the field that determines
255 - // whether the cutover applies), so the warning text is conditional in
256 - // wording — custom-OAuth users can ignore it, Composio-managed-OAuth
257 - // users see a clear pointer to link() before their org's cutover lands.
252 + // Warn once per process when a successful initiate() lands on the
253 + // redirectable-OAuth path. We can't tell from the response alone whether
254 + // the auth config is Composio-managed (the field that determines whether
255 + // the cutover applies), so the warning text is conditional in wording —
256 + // custom-OAuth users can ignore it, Composio-managed-OAuth users see a
257 + // clear pointer to link() before their org's cutover lands.
258 const responseAuthScheme = response.connectionData?.authScheme;
259 if (
260 !_legacyInitiateWarningEmitted &&