Skip to content

Commit e1a37d7

Browse files
committed
fix(security): remove stray comment; narrow credentialType to literal union
1 parent feea2e3 commit e1a37d7

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

apps/sim/lib/a2a/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ export async function createA2AClient(agentUrl: string, apiKey?: string): Promis
9090
} else if (init.body instanceof ArrayBuffer) {
9191
body = new Uint8Array(init.body)
9292
} else {
93-
// URLSearchParams, Blob, ReadableStream, FormData — read as text via Response
9493
const text = await new Response(init.body as BodyInit).text()
9594
if (text) body = text
9695
}

apps/sim/lib/auth/credential-access.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface CredentialAccessResult {
1313
credentialOwnerUserId?: string
1414
workspaceId?: string
1515
resolvedCredentialId?: string
16-
credentialType?: string
16+
credentialType?: 'oauth' | 'service_account'
1717
}
1818

1919
/**

0 commit comments

Comments
 (0)