MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / requestOAuthUrlFromPanel

Function requestOAuthUrlFromPanel

background/panel-bridge.js:20–25  ·  view source on GitHub ↗
(state, options = {})

Source from the content-addressed store, hash-verified

18 } = deps;
19
20 async function requestOAuthUrlFromPanel(state, options = {}) {
21 if (getPanelMode(state) === 'sub2api') {
22 return requestSub2ApiOAuthUrl(state, options);
23 }
24 return requestCpaOAuthUrl(state, options);
25 }
26
27 async function requestCpaOAuthUrl(state, options = {}) {
28 const { logLabel = 'OAuth 刷新' } = options;

Callers

nothing calls this directly

Calls 3

getPanelModeFunction · 0.70
requestSub2ApiOAuthUrlFunction · 0.70
requestCpaOAuthUrlFunction · 0.70

Tested by

no test coverage detected