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

Function getServiceConfigByServiceId

apps/sim/lib/oauth/utils.ts:507–513  ·  view source on GitHub ↗
(serviceId: string)

Source from the content-addressed store, hash-verified

505 * a provider's `services` map). Returns `null` when no provider registers it.
506 */
507export function getServiceConfigByServiceId(serviceId: string): OAuthServiceConfig | null {
508 for (const provider of Object.values(OAUTH_PROVIDERS)) {
509 const service = provider.services[serviceId]
510 if (service) return service
511 }
512 return null
513}
514
515export function getServiceConfigByProviderId(providerId: string): OAuthServiceConfig | null {
516 for (const provider of Object.values(OAUTH_PROVIDERS)) {

Callers 2

utils.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected