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 bannerline) and every session of their main wallet or any contract wallet ends. member.erased: matched by
the wallet SHA-256s 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 Spots: "Sign out everywhere" next to Sign out (POST /api/auth/logout-everywhere -> networksso.signOutEverywhere, then every
session of this wallet here ends). my.js?v=z2.
Smoke section 9 (refused signatures, signedout in two browsers, replay, older event, blocked, erased by wallet hash, other events,
hub down -> 503 -> resent, Sign out everywhere, admin view): 145/145 with UI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-16 05:01:22 -06:00
parent 046b3068cb
commit 197aa39fca
6 changed files with 196 additions and 5 deletions
+1
View File
@@ -17,6 +17,7 @@
return;
}
$('outBtn').onclick = async () => { await BL.post('/api/auth/logout'); location.reload(); };
$('outAllBtn').onclick = async () => { $('outAllBtn').disabled = true; await BL.post('/api/auth/logout-everywhere'); location.reload(); };
async function load() {
const d = await BL.getJSON('/api/my');
if (d.error) return BL.status(d.error, 'err');