Network hub hook (Marty 2026-11-16): sign out everywhere, hub blocks and erases end sessions here; "Sign out everywhere" button
hubevents.js (new, byte-identical in VBB, DLB, ViralAdBlitz, DownlineHydra, 5xYourTeam): POST /api/hub/events, signed by the hub with HUB_SECRET (same hook InstantAdPay and LinkSpin take). member.signedout and member.blocked: the person is looked up by hub id (/v1/resolve, signed as viraladblitz) and their sessions here end (by the main wallet or any contract wallet). member.erased: matched by the wallet SHA-256s (and email SHA-256) the hub now sends with the event. Only sessions made before the event end (a replay never signs anyone out twice); a failed hub lookup answers 503 so the hub resends. Off with HUB_HOOK=0. Admin status: hubEvents (counts only). My Ads: "Sign out everywhere" next to Sign out (POST /api/auth/logout-everywhere -> networksso.signOutEverywhere, then every session of this member here ends). Smoke: section 17 (same cases as the other wallet sites): 231/231 with UI. my.js?v=8 (the spin-link check now expects v=8). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
return;
|
||||
}
|
||||
$('signout').onclick = async () => { await VAB.post('/api/auth/logout'); location.reload(); };
|
||||
$('signoutAll').onclick = async () => { $('signoutAll').disabled = true; await VAB.post('/api/auth/logout-everywhere'); location.reload(); };
|
||||
const counter = (inp, out, max) => { const f = () => { out.textContent = inp.value.length + ' / ' + max; }; inp.addEventListener('input', f); f(); };
|
||||
const copyText = (t, b) => { const o = b.textContent; try { navigator.clipboard.writeText(t); b.textContent = 'Copied'; setTimeout(() => { b.textContent = o; }, 1400); } catch (e) {} };
|
||||
const ex = c.explorer || 'https://polygonscan.com';
|
||||
|
||||
Reference in New Issue
Block a user