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

Function getScopesForService

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

Source from the content-addressed store, hash-verified

539 * Useful for block definitions to reference scopes from the single source of truth.
540 */
541export function getScopesForService(serviceId: string): string[] {
542 for (const provider of Object.values(OAUTH_PROVIDERS)) {
543 const service = provider.services[serviceId]
544 if (service) {
545 return [...service.scopes]
546 }
547 }
548 return []
549}
550
551/**
552 * Scopes that control token behavior but are not returned in OAuth token responses.

Callers 15

utils.test.tsFile · 0.90
poller.tsFile · 0.90
monday.tsFile · 0.90
airtable.tsFile · 0.90
sharepoint.tsFile · 0.90
docusign.tsFile · 0.90
slack.tsFile · 0.90
microsoft_excel.tsFile · 0.90
asana.tsFile · 0.90
wealthbox.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected