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

Function getAllOAuthServices

apps/sim/lib/oauth/utils.ts:455–470  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

453 * This is safe to use on the server as it doesn't include React components.
454 */
455export function getAllOAuthServices(): OAuthServiceMetadata[] {
456 const services: OAuthServiceMetadata[] = []
457
458 for (const [baseProviderId, provider] of Object.entries(OAUTH_PROVIDERS)) {
459 for (const service of Object.values(provider.services)) {
460 services.push({
461 providerId: service.providerId,
462 name: service.name,
463 description: service.description,
464 baseProvider: baseProviderId,
465 })
466 }
467 }
468
469 return services
470}
471
472export function getServiceByProviderAndId(
473 provider: OAuthProvider,

Callers 4

utils.test.tsFile · 0.90
generateOAuthLinkFunction · 0.90
executeFunction · 0.90
createConnectDraftFunction · 0.90

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected