()
| 1 | import { ALLOWED_OAUTH2_TOKEN_FIELDS, DEFAULT_ALLOWED_OAUTH2_DOMAINS } from './constants' |
| 2 | |
| 3 | function getCustomDomains(): string[] { |
| 4 | return (process.env.OAUTH2_ALLOWED_TOKEN_DOMAINS ?? '') |
| 5 | .split(',') |
| 6 | .map((d) => d.trim().toLowerCase()) |
| 7 | .filter(Boolean) |
| 8 | } |
| 9 | |
| 10 | /** |
| 11 | * Builds the effective list of allowed OAuth2 token-endpoint domains. |
no outgoing calls
no test coverage detected