MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / getCustomDomains

Function getCustomDomains

packages/server/src/utils/oauth2Security.ts:3–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { ALLOWED_OAUTH2_TOKEN_FIELDS, DEFAULT_ALLOWED_OAUTH2_DOMAINS } from './constants'
2
3function 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.

Callers 1

getOAuth2AllowedDomainsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected