(providerId: string)
| 513 | } |
| 514 | |
| 515 | export function getServiceConfigByProviderId(providerId: string): OAuthServiceConfig | null { |
| 516 | for (const provider of Object.values(OAUTH_PROVIDERS)) { |
| 517 | for (const [key, service] of Object.entries(provider.services)) { |
| 518 | if (service.providerId === providerId || key === providerId) { |
| 519 | return service |
| 520 | } |
| 521 | } |
| 522 | } |
| 523 | |
| 524 | return null |
| 525 | } |
| 526 | |
| 527 | export function getServiceAccountProviderForProviderId(providerId: string): string | undefined { |
| 528 | const serviceConfig = getServiceConfigByProviderId(providerId) |
no outgoing calls
no test coverage detected