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

Function getFetchImpl

microsoft-email.js:44–50  ·  view source on GitHub ↗
(fetchImpl)

Source from the content-addressed store, hash-verified

42 const OUTLOOK_API_BASE = 'https://outlook.office.com/api/v2.0/me/mailfolders';
43
44 function getFetchImpl(fetchImpl) {
45 const resolved = fetchImpl || globalScope.fetch;
46 if (typeof resolved !== 'function') {
47 throw new Error('Microsoft email helper requires a fetch implementation.');
48 }
49 return resolved;
50 }
51
52 function resolveTokenStrategy(name) {
53 return TOKEN_STRATEGIES.find((item) => item.name === name) || TOKEN_STRATEGIES[0];

Callers 3

exchangeRefreshTokenFunction · 0.85
fetchGraphMessagesFunction · 0.85
fetchOutlookMessagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected