MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / settle

Function settle

packages/react/src/api/oauth-popup.ts:153–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 };
152
153 const settle = () => {
154 if (settled) return;
155 settled = true;
156 window.removeEventListener("message", onMessage);
157 window.removeEventListener("storage", onStorage);
158 channel?.close();
159 stopPolling();
160 };
161
162 const handleResult = (data: unknown) => {
163 if (!isOAuthPopupResult<TAuth>(data) || settled) return;

Callers 4

handleResultFunction · 0.70
openOAuthPopupFunction · 0.70
pollFunction · 0.70
openOAuthSystemBrowserFunction · 0.70

Calls 3

stopPollingFunction · 0.85
closeMethod · 0.65
abortMethod · 0.65

Tested by

no test coverage detected