MCPcopy Index your code
hub / github.com/simstudioai/sim / hasExternalApiCredentials

Function hasExternalApiCredentials

apps/sim/lib/auth/hybrid.ts:25–29  ·  view source on GitHub ↗
(headers: Headers)

Source from the content-addressed store, hash-verified

23 * as programmatic API traffic vs interactive session traffic.
24 */
25export function hasExternalApiCredentials(headers: Headers): boolean {
26 if (headers.has(API_KEY_HEADER)) return true
27 const auth = headers.get('authorization')
28 return auth?.startsWith(BEARER_PREFIX) ?? false
29}
30
31export interface AuthResult {
32 success: boolean

Callers 1

route.tsFile · 0.90

Calls 1

getMethod · 0.65

Tested by

no test coverage detected