MCPcopy Index your code
hub / github.com/CapSoftware/Cap / settle

Function settle

apps/desktop/src/utils/auth.ts:147–151  ·  view source on GitHub ↗
(value: AuthParams | null)

Source from the content-addressed store, hash-verified

145 });
146
147 const settle = (value: AuthParams | null) => {
148 if (settled) return;
149 settled = true;
150 resolvePromise(value);
151 };
152
153 stopListening = await listen("oauth://url", (data: { payload: string }) => {
154 if (!(data.payload.includes("token") || data.payload.includes("api_key"))) {

Callers 3

disposeFunction · 0.70
startDeepLinkSessionFunction · 0.70

Calls 1

resolvePromiseFunction · 0.85

Tested by

no test coverage detected