MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / handleAuth

Function handleAuth

src/background/sync/base.js:327–337  ·  view source on GitHub ↗
(payload)

Source from the content-addressed store, hash-verified

325 });
326 },
327 async handleAuth(payload) {
328 setSyncState({ status: SYNC_AUTHORIZING });
329 try {
330 await this.finishAuth(payload);
331 } catch (err) {
332 setSyncState({ status: SYNC_ERROR_AUTH });
333 throw err;
334 }
335 setSyncState({ status: SYNC_AUTHORIZED });
336 autoSync();
337 },
338 checkAuth(url) {
339 const payload = this.matchAuth(url);
340 if (payload) {

Callers

nothing calls this directly

Calls 2

setSyncStateFunction · 0.90
autoSyncFunction · 0.85

Tested by

no test coverage detected