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

Function getProviderIdFromServiceId

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

Source from the content-addressed store, hash-verified

488}
489
490export function getProviderIdFromServiceId(serviceId: string): string {
491 for (const provider of Object.values(OAUTH_PROVIDERS)) {
492 for (const [id, service] of Object.entries(provider.services)) {
493 if (id === serviceId) {
494 return service.providerId
495 }
496 }
497 }
498
499 // Default fallback
500 return serviceId
501}
502
503/**
504 * Looks up the OAuth service registered under the given service id (the key in

Callers 12

utils.test.tsFile · 0.90
ConnectOAuthModalFunction · 0.90
AddConnectorModalFunction · 0.90
ConnectorCardFunction · 0.90
renderParameterInputFunction · 0.90
ToolCredentialSelectorFunction · 0.90
CredentialSelectorFunction · 0.90
workflow-block.tsxFile · 0.90
route.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected