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

Function getCanonicalScopesForProvider

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

Source from the content-addressed store, hash-verified

530}
531
532export function getCanonicalScopesForProvider(providerId: string): string[] {
533 const service = getServiceConfigByProviderId(providerId)
534 return service?.scopes ? [...service.scopes] : []
535}
536
537/**
538 * Get canonical scopes for a service by its serviceId key in OAUTH_PROVIDERS.

Callers 10

auth.tsFile · 0.90
utils.test.tsFile · 0.90
AddConnectorModalFunction · 0.90
ConnectorCardFunction · 0.90
ToolCredentialSelectorFunction · 0.90
CredentialSelectorFunction · 0.90
toCredentialResponseFunction · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
executeToolFunction · 0.85

Calls 1

Tested by

no test coverage detected