MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / oauth2Security.test.ts

File oauth2Security.test.ts

packages/server/src/utils/oauth2Security.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Mock the constants module to avoid pulling in the full application dependency graph
2jest.mock('./constants', () => ({
3 ALLOWED_OAUTH2_TOKEN_FIELDS: ['access_token', 'refresh_token', 'token_type', 'expires_in', 'scope', 'id_token', 'granted_scope'],
4 DEFAULT_ALLOWED_OAUTH2_DOMAINS: [

Callers

nothing calls this directly

Calls 3

getOAuth2AllowedDomainsFunction · 0.90
validateOAuth2UrlFunction · 0.90
extractOAuth2TokenFieldsFunction · 0.90

Tested by

no test coverage detected