(serviceId: string)
| 505 | * a provider's `services` map). Returns `null` when no provider registers it. |
| 506 | */ |
| 507 | export function getServiceConfigByServiceId(serviceId: string): OAuthServiceConfig | null { |
| 508 | for (const provider of Object.values(OAUTH_PROVIDERS)) { |
| 509 | const service = provider.services[serviceId] |
| 510 | if (service) return service |
| 511 | } |
| 512 | return null |
| 513 | } |
| 514 | |
| 515 | export function getServiceConfigByProviderId(providerId: string): OAuthServiceConfig | null { |
| 516 | for (const provider of Object.values(OAUTH_PROVIDERS)) { |
no outgoing calls
no test coverage detected