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 fivex) 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).
/team: "Sign out everywhere" next to Sign out (POST /api/auth/logout-everywhere -> networksso.signOutEverywhere, then every
session of this member here ends).
Smoke: section 14b (same cases as the other wallet sites): 172 pass, 2 fail with UI; the same 2 (pool size, this week's pot: test-clock dated) fail on a clean HEAD. team.js?v=4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-16 05:05:38 -06:00
parent 3cbe33db77
commit b2d5eb4625
6 changed files with 188 additions and 4 deletions
+2 -2
View File
@@ -26,7 +26,7 @@
<section id="signin" class="panel" hidden><p class="kicker">MY TEAM</p><h1 style="font-size:44px">Sign in to coach your team</h1><p class="muted">Sign in with your network account, or with your wallet. Your picks, cards and messages are here.</p><div id="signinBox"></div></section>
<p id="status" class="note" hidden></p>
<div id="dash" hidden style="display:flex;flex-direction:column;gap:28px">
<div class="sh"><div><p class="kicker">MY TEAM</p><h1 style="font-size:44px" id="hello"></h1></div><div class="row"><span id="myPage" hidden class="small">My coach page: <a id="myPageLink" href="#"></a></span><a class="btn-ghost" href="/promote">Promo kit</a><a class="btn-ghost" href="/builder">My builder links</a><button type="button" class="btn-ghost" id="signout" hidden>Sign out</button></div></div>
<div class="sh"><div><p class="kicker">MY TEAM</p><h1 style="font-size:44px" id="hello"></h1></div><div class="row"><span id="myPage" hidden class="small">My coach page: <a id="myPageLink" href="#"></a></span><a class="btn-ghost" href="/promote">Promo kit</a><a class="btn-ghost" href="/builder">My builder links</a><button type="button" class="btn-ghost" id="signout" hidden>Sign out</button><button type="button" class="btn-ghost" id="signoutAll" hidden title="Ends your network sign-in on every network site">Sign out everywhere</button></div></div>
<section id="myCoach" class="ccard" hidden>
<div class="l"><span class="kicker">YOUR COACH</span><b id="mcName"></b><span class="muted small" id="mcTier"></span></div>
<div class="r"><h3>Getting started</h3><div id="mcSteps"></div><h3>Messages</h3><div class="thread" id="mcThread"></div>
@@ -54,7 +54,7 @@
</main>
<script src="/assets/common.js?v=3"></script>
<script src="/assets/wallet.js?v=3"></script>
<script src="/assets/team.js?v=3"></script>
<script src="/assets/team.js?v=4"></script>
<script src="/assets/chat.js?v=2" defer></script>
</body>
</html>