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

Function applyHotmailApiResultToAccount

background.js:1501–1510  ·  view source on GitHub ↗
(account, apiResult)

Source from the content-addressed store, hash-verified

1499}
1500
1501function applyHotmailApiResultToAccount(account, apiResult) {
1502 const nextRefreshToken = String(apiResult?.nextRefreshToken || '').trim();
1503 return {
1504 ...account,
1505 refreshToken: nextRefreshToken || account.refreshToken,
1506 status: 'authorized',
1507 lastAuthAt: Date.now(),
1508 lastError: '',
1509 };
1510}
1511
1512function buildHotmailMailApiFailureAccount(account, errorMessage) {
1513 return normalizeHotmailAccount({

Calls

no outgoing calls

Tested by

no test coverage detected