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

Function resolveProviderConfigEnvVars

apps/sim/lib/webhooks/processor.ts:423–436  ·  view source on GitHub ↗
(
  config: Record<string, unknown>,
  envVars: Record<string, string>
)

Source from the content-addressed store, hash-verified

421}
422
423function resolveProviderConfigEnvVars(
424 config: Record<string, unknown>,
425 envVars: Record<string, string>
426): Record<string, unknown> {
427 const resolved: Record<string, unknown> = {}
428 for (const [key, value] of Object.entries(config)) {
429 if (typeof value === 'string') {
430 resolved[key] = resolveEnvVars(value, envVars)
431 } else {
432 resolved[key] = value
433 }
434 }
435 return resolved
436}
437
438/**
439 * Verify webhook provider authentication and signatures.

Callers 1

verifyProviderAuthFunction · 0.85

Calls 1

resolveEnvVarsFunction · 0.85

Tested by

no test coverage detected