( config: Record<string, unknown>, envVars: Record<string, string> )
| 421 | } |
| 422 | |
| 423 | function 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. |
no test coverage detected