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

Function getServiceConfigByProviderId

apps/sim/lib/oauth/utils.ts:515–525  ·  view source on GitHub ↗
(providerId: string)

Source from the content-addressed store, hash-verified

513}
514
515export function getServiceConfigByProviderId(providerId: string): OAuthServiceConfig | null {
516 for (const provider of Object.values(OAUTH_PROVIDERS)) {
517 for (const [key, service] of Object.entries(provider.services)) {
518 if (service.providerId === providerId || key === providerId) {
519 return service
520 }
521 }
522 }
523
524 return null
525}
526
527export function getServiceAccountProviderForProviderId(providerId: string): string | undefined {
528 const serviceConfig = getServiceConfigByProviderId(providerId)

Callers 11

utils.test.tsFile · 0.90
credential.tsFile · 0.90
getProviderNameFunction · 0.90
IntegrationsFunction · 0.90
IntegrationBlockDetailFunction · 0.90
route.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected