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

Function providerConfigReferencesEnvVars

apps/sim/lib/webhooks/processor.ts:414–421  ·  view source on GitHub ↗

True when any string value in the provider config contains an env-var reference (`{{VAR}}`).

(config: Record<string, unknown>)

Source from the content-addressed store, hash-verified

412
413/** True when any string value in the provider config contains an env-var reference (`{{VAR}}`). */
414function providerConfigReferencesEnvVars(config: Record<string, unknown>): boolean {
415 for (const value of Object.values(config)) {
416 if (typeof value === 'string' && value.includes('{{')) {
417 return true
418 }
419 }
420 return false
421}
422
423function resolveProviderConfigEnvVars(
424 config: Record<string, unknown>,

Callers 1

verifyProviderAuthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected