(serviceId: string)
| 539 | * Useful for block definitions to reference scopes from the single source of truth. |
| 540 | */ |
| 541 | export 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. |
no outgoing calls
no test coverage detected