diff --git a/chatbot.js b/chatbot.js
index 22cc691..07fa88e 100644
--- a/chatbot.js
+++ b/chatbot.js
@@ -34,9 +34,13 @@ function key() {
function enabled() { return !!key(); }
// ---- canned answers: instant, free, always in voice ----
-const KNOWLEDGE_DATE = '2026-11-11'; // bump whenever the canned answers / prompt are brought up to date
+const KNOWLEDGE_DATE = '2026-11-12'; // bump whenever the canned answers / prompt are brought up to date
const SUPPORT_RE = /(contact|reach|email|e-mail|message|talk to|speak (to|with)|get hold of) (the )?(support|admin|administrator|owner|marty|staff|team at instantadpay|someone|a (human|person|real person))|support (email|address|ticket|team|desk)|help ?desk|(open|send|file|submit|raise) (a )?(support )?ticket|\b(human|real person|live (agent|person|chat|support))\b|customer (service|support)|support@|how (do|can) i get (help|support)/i;
const CANNED = [
+ // network sign-in (2026-11-12): signed in on one of InstantAdPay / LinkSpin = signed in on the other, no code (networksso.js)
+ { id: 'network-signin', title: 'One sign-in for InstantAdPay and LinkSpin', q: ['Do I have to sign in again on LinkSpin?', 'Why was I signed in on LinkSpin without a code?', 'Is it one sign-in for both sites?'], tags: ['sign in', 'network sign-in', 'linkspin', 'code', 'single sign-on'],
+ re: /(((sign(ed)?|log(ged)?) ?-?(in|on)\b(?! ?-?ads?\b)|\bcodes?\b|password).{0,40}(linkspin|both sites|other site)|(linkspin|both sites|other site).{0,40}((sign(ed)?|log(ged)?) ?-?(in|on)\b(?! ?-?ads?\b)|\bcodes?\b|password)|single sign|sso|one sign.?in|network sign.?in)/i,
+ a: 'One sign-in covers both sites. While you are signed in on InstantAdPay, any link inside your account that opens LinkSpin (the Engine Room, Refuel and the other LinkSpin links) lands you there signed in, with no code. It works the other way too, and if you open the sign-in screen on either site while you are signed in on the other, it signs you in by itself. Both sites use the same email. The one exception: if your account on the other site is not set up yet (for example you joined minutes ago, or it is waiting for your first visit), you get the usual email code that one time, with your email already filled in. Signing out signs you out of that site only, and it stays signed out there until you sign in again or follow a link from the other site. A session still lasts 4 hours on each site. This sign-in never moves money: buying, payouts and wallet actions work exactly as before.' },
// Stack POL (2026-11-09): stackpol.com, every POL payout across the network on one page; members opt in to a page in Promo tools
// Earners Corner (2026-11-10): earnerscorner.com, the network's forum; sign-in is the InstantAdPay account (DiscourseConnect)
{ id: 'earners-corner', title: 'Earners Corner forum', q: ['What is Earners Corner?', 'Is there a forum?', 'How do I sign in to the forum?'], tags: ['earners corner', 'forum', 'earnerscorner', 'community', 'discussion'],
@@ -341,6 +345,7 @@ function systemPrompt(kbBlock) {
FACTS:
- LEVEL 4 OVERRIDE (LIVE 2026-10-26, first payout Monday 2026-11-02): company-paid, off-chain decision, on-chain payment. 3% of every package purchase (the POL actually paid) goes to the buyer's 4th upline on the contract sponsor chain if that member's contract buyerCount is 5 or more (qualifying buyer = direct referral with a $20+ purchase, same bar as level 3); otherwise it hunts up to the next qualified upline, max 25 hops; the company account (#1) or no qualified upline = company keeps it; exactly one recipient per purchase. Paid weekly in POL every Monday after 9 AM Central for the previous Monday to Sunday Central week, from a company payer wallet via the contract's award(memberId), shown in Earnings as 'Level 4 override' with a Polygon link and announced by email and an on-site notice. Under 0.01 POL carries to the next week. Purchases from the start date only, no back pay. Funded from the platform's 20%; the contract split 50/20/10 is unchanged. Never promise amounts.
+- NETWORK SIGN-IN (built 2026-11-12): one sign-in for InstantAdPay and LinkSpin, same email on both. A member signed in on one site who follows a link from inside their account to the other (Engine Room, Refuel, Back to InstantAdPay) arrives signed in with no email code; opening the other site's sign-in screen while signed in here also signs them in by itself (one quiet try per browser every 30 minutes). Exception: when the account on the receiving site does not exist yet or is still a waiting account (never signed in), they get the normal email code once, email prefilled. Sign-out is per site and switches the automatic sign-in off on that site for 12 hours (a deliberate link from the other site still works). Sessions are ordinary member sessions (4 hours), the admin portal is never shared, and the sign-in grants nothing extra: purchases, payouts and wallet actions still need the wallet. If it fails, the email code always works.
- EARNERS CORNER (LIVE 2026-11-10, https://earnerscorner.com): the network's own forum (Discourse) for people who earn online: business opportunities, PTC, traffic exchanges and mailers, crypto earning and wallets, affiliate marketing, tools, plus an Our Network section. Read is open to everyone; posting needs signing in with the InstantAdPay account (no separate forum password). New accounts' first posts are reviewed; links unlock with trust and are open from day one for members with an on-chain position; referral links only in Promote Your Program; AI spam detection; a forum assistant answers network questions from the same official knowledge and links threads.
- STACK POL (LIVE 2026-11-09, https://stackpol.com): one site that adds up every POL payout in the network (InstantAdPay and LinkSpin TierPaid referral payments plus every game's payouts), refreshed every 5 minutes, with per-program pages (/earn/), a public ledger showing each payout's username and Polygonscan link, and a blog. Members get a public page at stackpol.com/ by switching on 'Show my Stack POL page' in Promo tools > Stack POL; it is ON by default for every paid member (since 2026-11-09) and off only when they switch it off. It never holds money. STACK POL PRO (2026-11-09): one-time unlock, NEW MONEY only: ANY package of $10 or more bought by the member's own position unlocks it automatically (since 2026-11-09 evening, no order step); credits never count; it never uses up a package that also fulfils a Game Pass or hero order. Pro pages show the member's own LinkSpin Banner Spins in the ad spots (network zones otherwise), their spin links, a purple QR code to the page, a 'Want a personalized page like this?' button, and articles opened from the page (?ref=) use the member's referral on every call to action. Pro owners get the Stack POL Pro badge. Totals are past payouts, never a promise of earnings.
${passTiersFact()}${heroesFact()}${refuelFact()}${synFact()}${polminerFact()}${warpwaresFact()}${bixFact()}${turkeydropFact()}${sovTestFact()}- ROAD AGENT (LIVE 2026-10-15, https://roadagent.app): a night-highway shooter open to every member. Open the Games tab and tap Play on the Road Agent card, or go to roadagent.app and sign in with the InstantAdPay email. Drive the four-lane highway, shoot the hostiles (thug sedans, switchblades, gunner vans), spare the civilians, pull into the weapons truck for oil slicks, smoke and missiles. Clearing a sector for the first time pays POL to the wallet on the member's InstantAdPay account, plus a daily patrol reward; scrap buys garage upgrades. Fuel = a sponsor visit: before a run the player visits an advertiser's page (a FUEL STOP), which is a normal verified visit with the dwell timer and human check, charged to the advertiser like any visit; advertisers' existing visits campaigns are already in the rotation, nothing to set up; to get more traffic from the game, top up the visits campaign. Clickable Pause, Sound and Music buttons sit under the game (P / M / N keys also work), and the Run tab has an Invite a friend card with the member's roadagent.app/?ref= link.
diff --git a/networksso.js b/networksso.js
new file mode 100644
index 0000000..c886b0f
--- /dev/null
+++ b/networksso.js
@@ -0,0 +1,188 @@
+// Network sign-in between InstantAdPay and LinkSpin (Marty approved 2026-11-12). The SAME file ships in both repos; each
+// server calls init({ self, peer, peerBase, ... hooks }) and hands every request to handle() before its own routes.
+//
+// One flow, used two ways. R = the site the member is going TO (receiver), P = the site they are signed in on (provider).
+// 1. R GET /sso/start?mode=go|check&to=/path R makes a random state, keeps it in a 5-minute HttpOnly cookie (nsso.st),
+// sets the loop guard (nsso.tried, 30 minutes) and sends the browser to P.
+// 2. P GET /sso/check?st=&to=/path P looks at its OWN member session (never the admin portal). Signed in:
+// P mints a token bound to R, the state and the email, and sends the browser
+// to R /sso/in?t=. Not signed in: R /sso/in?none=1&to=/path.
+// 3. R GET /sso/in?t= R checks signature, audience, expiry (60 s), the state against its cookie
+// (so nobody can push their own token into someone else's browser), and spends
+// the nonce (a second use is refused). The email must already be a member
+// here; then R makes an ordinary session and redirects to the relative path.
+// Outbound links: P GET /go/?to=/path is the hop a signed-in member's cross-site link points at. Signed out (or the
+// secret not set), it is a plain redirect to the other site, so it is always safe to link through.
+// Silent check: R's sign-in page calls GET /api/sso/status; { check: true } means "bounce once through P". The guard cookie
+// stops a second bounce for 30 minutes, signing out sets nsso.off (12 hours, cleared by the next deliberate cross-site link),
+// bots and non-page fetches never bounce.
+// Token: "v1..", JSON = { iss, aud, email,
+// st, to, iat, exp, n }. The token grants a plain member session and nothing else: no wallet action, payout or purchase rides on it.
+'use strict';
+const crypto = require('crypto');
+const fs = require('fs');
+const path = require('path');
+
+const SECRET = () => String(process.env.NETWORK_SSO_SECRET || '').trim();
+const enabled = () => SECRET().length >= 32;
+const TTL = 60 * 1000; // token life
+const SKEW = 30 * 1000; // clock skew allowed between the two servers
+const STATE_AGE = 300; // seconds: the state cookie
+const TRIED_AGE = 1800; // seconds: one silent check per browser per 30 minutes
+const OFF_AGE = 12 * 3600; // seconds: no silent check after a sign-out on this site
+const HINT_AGE = 300; // seconds: the email prefill when the member is not here yet
+const NAMES = { iap: 'InstantAdPay', linkspin: 'LinkSpin' };
+
+let C = null; // { self, peer, peerBase(), isProd, dataDir, db, member(req), accept(email), signIn(email, req), landing(to), signinPath(to), defaultPath }
+
+const b64u = buf => Buffer.from(buf).toString('base64').replace(/=+$/, '').replace(/\+/g, '-').replace(/\//g, '_');
+const unb64u = s => Buffer.from(String(s).replace(/-/g, '+').replace(/_/g, '/'), 'base64');
+const mac = s => crypto.createHmac('sha256', SECRET()).update('nsso.v1.' + s).digest();
+const mask = e => String(e || '').replace(/^(.).*(@.*)$/, '$1***$2');
+const log = (what, email, extra) => console.log('network-sso', what, email ? mask(email) : '-', extra || '');
+
+// a same-site relative path, or the default. No scheme, no host, no protocol-relative //x, no backslashes, no control characters.
+function safePath(to, dflt) {
+ const d = dflt == null ? '/' : dflt;
+ const s = String(to == null ? '' : to);
+ if (!s || s.length > 600 || s[0] !== '/' || s[1] === '/' || s[1] === '\\' || /[\\\u0000-\u001f\u007f\s]/.test(s)) return d;
+ try { const x = new URL(s, 'http://x.invalid'); if (x.host !== 'x.invalid' || x.protocol !== 'http:') return d; return x.pathname + x.search + x.hash; } catch (e) { return d; }
+}
+
+function mint(o) {
+ const now = o.now || Date.now();
+ const body = b64u(JSON.stringify({ iss: o.iss, aud: o.aud, email: String(o.email || '').trim().toLowerCase(), st: o.st, to: safePath(o.to), iat: now, exp: now + TTL, n: crypto.randomBytes(16).toString('hex') }));
+ return 'v1.' + body + '.' + b64u(mac(body));
+}
+
+// -> { ok, email, to, n, exp } or { error: reason }
+function verify(tok, o) {
+ if (!enabled()) return { error: 'off' };
+ const m = /^v1\.([A-Za-z0-9_-]{20,2000})\.([A-Za-z0-9_-]{43})$/.exec(String(tok || ''));
+ if (!m) return { error: 'malformed' };
+ const want = mac(m[1]), got = unb64u(m[2]);
+ if (want.length !== got.length || !crypto.timingSafeEqual(want, got)) return { error: 'signature' };
+ let p; try { p = JSON.parse(unb64u(m[1]).toString('utf8')); } catch (e) { return { error: 'malformed' }; }
+ const now = (o && o.now) || Date.now();
+ if (!p || p.aud !== o.aud || p.iss !== o.iss) return { error: 'audience' };
+ if (!(Number(p.exp) > now) || Number(p.iat) > now + SKEW || Number(p.exp) - Number(p.iat) > TTL) return { error: 'expired' };
+ if (!/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(String(p.email || ''))) return { error: 'email' };
+ if (!/^[a-f0-9]{32}$/.test(String(p.n || ''))) return { error: 'malformed' };
+ const st = String((o && o.st) || '');
+ if (!/^[a-f0-9]{32}$/.test(st) || !/^[a-f0-9]{32}$/.test(String(p.st || '')) || !crypto.timingSafeEqual(Buffer.from(st), Buffer.from(p.st))) return { error: 'state' };
+ return { ok: true, email: String(p.email).toLowerCase(), to: safePath(p.to), n: p.n, exp: Number(p.exp) };
+}
+
+// single use: true the first time a nonce is spent. MySQL when the site runs on it (two app copies during a deploy share it),
+// else memory + a small file in DATA_DIR (survives a restart inside the 60-second window).
+const used = new Map(); let fileLoaded = false, tableReady = null;
+const FILE = () => C && C.dataDir ? path.join(C.dataDir, 'network-sso-nonces.json') : null;
+function prune(now) { for (const [k, exp] of used) if (exp < now) used.delete(k); }
+function loadFile() {
+ if (fileLoaded) return; fileLoaded = true;
+ try { const o = JSON.parse(fs.readFileSync(FILE(), 'utf8')); for (const k of Object.keys(o)) used.set(k, Number(o[k])); } catch (e) {}
+}
+function saveFile() { const f = FILE(); if (!f) return; try { fs.writeFileSync(f + '.tmp', JSON.stringify(Object.fromEntries(used))); fs.renameSync(f + '.tmp', f); } catch (e) { console.error('network-sso nonce save', e.message); } }
+async function spend(n, exp) {
+ const now = Date.now(); loadFile(); prune(now);
+ if (used.has(n)) return false;
+ used.set(n, Number(exp) + SKEW); saveFile();
+ const db = C && C.db;
+ if (db && db.enabled && db.enabled()) {
+ try {
+ if (!tableReady) tableReady = db.q('CREATE TABLE IF NOT EXISTS network_sso_nonces (n VARCHAR(40) PRIMARY KEY, exp BIGINT NOT NULL) ENGINE=InnoDB').catch(e => { tableReady = null; throw e; });
+ await tableReady;
+ await db.q('INSERT INTO network_sso_nonces (n, exp) VALUES (?, ?)', [n, Number(exp) + SKEW]);
+ if (Math.random() < 0.05) db.q('DELETE FROM network_sso_nonces WHERE exp < ?', [now]).catch(() => {});
+ } catch (e) { if (/duplicate/i.test(e.message || '') || e.code === 'ER_DUP_ENTRY') return false; console.error('network-sso nonce db', e.message); return false; } // fail closed
+ }
+ return true;
+}
+
+// crawlers, link previews and headless browsers never bounce
+const BOT_RE = /bot|crawl|spider|slurp|preview|facebookexternalhit|embedly|quora link|whatsapp|telegram|discord|skype|curl|wget|python|httpclient|headless|lighthouse|pingdom|monitor|go-http|java\/|okhttp|axios|node-fetch|undici/i;
+const isBot = req => { const ua = String(req.headers['user-agent'] || ''); return !ua || BOT_RE.test(ua); };
+// only a real top-level page load may start a bounce (sec-fetch-dest is sent by every current browser)
+const notPage = req => { const d = req.headers['sec-fetch-dest']; return !!d && d !== 'document'; };
+
+function cookies(req) {
+ const out = {};
+ for (const p of String(req.headers.cookie || '').split(';')) { const i = p.indexOf('='); if (i > 0) { try { out[p.slice(0, i).trim()] = decodeURIComponent(p.slice(i + 1).trim()); } catch (e) {} } }
+ return out;
+}
+const ck = (k, v, age, httpOnly) => k + '=' + encodeURIComponent(v) + '; Path=/; SameSite=Lax; Max-Age=' + age + (httpOnly ? '; HttpOnly' : '') + (C && C.isProd ? '; Secure' : '');
+const go = (res, loc, set) => { const h = { Location: loc, 'Cache-Control': 'no-store', 'Referrer-Policy': 'no-referrer', 'X-Robots-Tag': 'noindex' }; if (set && set.length) h['Set-Cookie'] = set; res.writeHead(302, h); res.end(); return true; };
+const sendJson = (res, obj, set) => { const h = { 'Content-Type': 'application/json', 'Cache-Control': 'no-store' }; if (set && set.length) h['Set-Cookie'] = set; res.writeHead(200, h); res.end(JSON.stringify(obj)); return true; };
+
+function init(opts) { C = Object.assign({ defaultPath: '/' }, opts); fileLoaded = false; used.clear(); }
+
+// the cookie a sign-out adds: no silent check on this site for 12 hours (a deliberate cross-site link still signs in)
+const offCookie = () => ck('nsso.off', '1', OFF_AGE, true);
+
+// -> true when the request was one of ours and has been answered
+async function handle(req, res, u) {
+ if (!C || req.method !== 'GET') return false;
+ const p = u.pathname;
+ const peerName = NAMES[C.peer] || C.peer;
+ if (p === '/go/' + C.peer) {
+ const to = safePath(u.searchParams.get('to'), '/');
+ const plain = C.peerBase() + to;
+ if (!enabled() || isBot(req)) return go(res, plain);
+ let s = null; try { s = await C.member(req); } catch (e) {}
+ if (!s || !s.email) return go(res, plain);
+ return go(res, C.peerBase() + '/sso/start?mode=go&to=' + encodeURIComponent(to));
+ }
+ if (p === '/sso/start') {
+ const to = safePath(u.searchParams.get('to'), C.defaultPath);
+ const mode = u.searchParams.get('mode') === 'go' ? 'go' : 'check';
+ if (!enabled() || isBot(req) || notPage(req)) return go(res, to);
+ let s = null; try { s = await C.member(req); } catch (e) {}
+ if (s && s.email) return go(res, to); // already signed in here
+ const c = cookies(req);
+ if (mode === 'check' && (c['nsso.tried'] || c['nsso.off'])) return go(res, to);
+ const st = crypto.randomBytes(16).toString('hex');
+ const set = [ck('nsso.st', st, STATE_AGE, true), ck('nsso.tried', '1', TRIED_AGE, true)];
+ if (mode === 'go' && c['nsso.off']) set.push(ck('nsso.off', '', 0, true));
+ return go(res, C.peerBase() + '/sso/check?st=' + st + '&to=' + encodeURIComponent(to), set);
+ }
+ if (p === '/sso/check') {
+ const st = String(u.searchParams.get('st') || '');
+ const to = safePath(u.searchParams.get('to'), '/');
+ const none = C.peerBase() + '/sso/in?none=1&to=' + encodeURIComponent(to);
+ if (!enabled() || !/^[a-f0-9]{32}$/.test(st)) return go(res, none);
+ let s = null; try { s = await C.member(req); } catch (e) {}
+ if (!s || !s.email) { log('check: not signed in here', null, 'for ' + peerName); return go(res, none); }
+ log('token issued', s.email, 'for ' + peerName);
+ return go(res, C.peerBase() + '/sso/in?t=' + mint({ iss: C.self, aud: C.peer, email: s.email, st, to }));
+ }
+ if (p === '/sso/in') {
+ const c = cookies(req);
+ const set = [ck('nsso.st', '', 0, true)];
+ if (u.searchParams.get('none')) { log('none: not signed in on ' + peerName); return go(res, C.signinPath(safePath(u.searchParams.get('to'), C.defaultPath)), set); }
+ const v = verify(u.searchParams.get('t'), { iss: C.peer, aud: C.self, st: c['nsso.st'] });
+ if (v.error) { log('refused: ' + v.error); return go(res, C.signinPath(C.defaultPath), set); }
+ if (!(await spend(v.n, v.exp))) { log('refused: token already used', v.email); return go(res, C.signinPath(v.to), set); }
+ let a = null; try { a = await C.accept(v.email, req); } catch (e) { a = { fallback: 'error ' + e.message }; }
+ if (!a || !a.ok) { // not a member here yet (or not allowed to sign in): the normal email-code sign-in, email filled in
+ log('fallback to email code: ' + ((a && a.fallback) || 'not accepted'), v.email);
+ set.push(ck('nsso.hint', v.email, HINT_AGE, true));
+ return go(res, C.signinPath(v.to), set);
+ }
+ let cookie = null; try { cookie = await C.signIn(v.email, req); } catch (e) { console.error('network-sso sign-in', e.message); }
+ if (!cookie) { log('fallback to email code: session not made', v.email); return go(res, C.signinPath(v.to), set); }
+ set.push(cookie); if (c['nsso.off']) set.push(ck('nsso.off', '', 0, true));
+ log('signed in from ' + peerName, v.email);
+ return go(res, C.landing(v.to), set);
+ }
+ if (p === '/api/sso/status') {
+ const c = cookies(req); const set = [];
+ let s = null; try { s = await C.member(req); } catch (e) {}
+ const signedIn = !!(s && s.email);
+ const out = { peer: peerName, check: enabled() && !signedIn && !isBot(req) && !c['nsso.tried'] && !c['nsso.off'] };
+ if (c['nsso.hint']) { if (!signedIn) out.hint = c['nsso.hint']; set.push(ck('nsso.hint', '', 0, true)); }
+ return sendJson(res, out, set);
+ }
+ return false;
+}
+
+module.exports = { init, handle, enabled, mint, verify, spend, safePath, isBot, offCookie, mask, TTL, NAMES };
diff --git a/public/assets/engine-room.js b/public/assets/engine-room.js
index 976a5e8..2b569ce 100644
--- a/public/assets/engine-room.js
+++ b/public/assets/engine-room.js
@@ -11,7 +11,8 @@
const TASK = { tracking: 'conversions', start: 'refuel', refuel: 'refuel', pitstop: 'refuel', bannerspin: 'bannerspin', testing: 'testing', relaunch: 'ads', topup: 'ads', cut: 'ads', cruise: 'ads' };
let FROM = 'iap';
const siteOf = u => /linkspin/i.test(u.host) ? 'linkspin' : 'iap'; // which site a link belongs to, by its host (also right on a local copy)
- const go = (url, task) => { try { const u = new URL(url); if (u.host === location.host || siteOf(u) === FROM) return u.pathname + u.search + u.hash; if (task) { u.searchParams.set('from', FROM); u.searchParams.set('task', task); } return u.href; } catch (e) { return url; } };
+ // a link to the other site goes through this site's /go/ hop (network sign-in, 2026-11-12): the member arrives signed in
+ const go = (url, task) => { try { const u = new URL(url); if (u.host === location.host || siteOf(u) === FROM) return u.pathname + u.search + u.hash; if (task) { u.searchParams.set('from', FROM); u.searchParams.set('task', task); } return '/go/' + (FROM === 'iap' ? 'linkspin' : 'iap') + '?to=' + encodeURIComponent(u.pathname + u.search + u.hash); } catch (e) { return url; } };
// "Refuel LinkSpin this cycle..." gets a way there (2026-10-25): the other site's buy screen, tagged for its arrival strip
const otherBuy = note => { const m = /^Refuel (LinkSpin|InstantAdPay) /.exec(note || ''); if (!m) return '';
const url = m[1] === 'LinkSpin' ? 'https://linkspin.app/credits#refuel' : 'https://instantadpay.com/my#buy';
diff --git a/public/assets/fuel.js b/public/assets/fuel.js
index 9126a03..4e3e713 100644
--- a/public/assets/fuel.js
+++ b/public/assets/fuel.js
@@ -28,7 +28,7 @@
let twin = '';
if (!v.windowOpen && c.month && !c.both) twin = 'Refuel ' + (c.iap && c.iap.refueled ? 'LinkSpin ($' + v.minUsd.linkspin + '+)' : 'InstantAdPay ($' + v.minUsd.iap + '+)') + ' before ' + esc(v.opensLabel) + ' and both sites move to +' + v.next.secondEngine + '%; the one you already refueled is topped up to match.'
// the second engine is on the other site: a direct way there (2026-10-25), landing on LinkSpin's Refuel panel with an arrival strip
- + (c.iap && c.iap.refueled ? ' Refuel LinkSpin ↗ (same email signs you in)' : '') + '
';
+ + (c.iap && c.iap.refueled ? ' Refuel LinkSpin ↗ (same email signs you in)' : '') + '
';
let pit = '';
if (v.pitStop) {
const here = v.pitStop.iap ? 'available here (+' + v.pitStop.pct + '% on a $' + v.minUsd.iap + '+ top-up, once this cycle)' : v.pitStop.usedIap ? 'used here this cycle' : null;
diff --git a/public/assets/netsso.js b/public/assets/netsso.js
new file mode 100644
index 0000000..6f3c75d
--- /dev/null
+++ b/public/assets/netsso.js
@@ -0,0 +1,30 @@
+// Network sign-in, the sign-in page side (2026-11-12). The SAME file ships in InstantAdPay and LinkSpin (see networksso.js).
+// On a sign-in screen with no session: ask /api/sso/status once; { check: true } means bounce once through the other site,
+// which signs the member in here if they are signed in there (the server allows one try per browser per 30 minutes and none
+// after a sign-out). { hint } means they came from the other site but need the email code here the first time: fill it in.
+(function () {
+ if (window.__netsso) return; window.__netsso = 1;
+ const BOXES = '#mcEmail,#jnEmail,#siEmail';
+ function fill(email, peer) {
+ let n = 0;
+ const t = setInterval(() => {
+ const el = document.querySelector(BOXES);
+ if (el && el.offsetParent !== null) {
+ clearInterval(t);
+ if (!el.value) el.value = email;
+ if (!document.getElementById('nssoNote')) {
+ const p = document.createElement('p'); p.id = 'nssoNote'; p.className = 'muted small'; p.setAttribute('role', 'note'); p.style.margin = '6px 0';
+ p.textContent = 'Welcome over from ' + peer + '. The first time here, send yourself a code with the same email to finish signing in. After that, ' + peer + ' signs you in here.';
+ (el.closest('label') || el).insertAdjacentElement('afterend', p);
+ }
+ try { el.focus(); } catch (e) {}
+ } else if (++n > 60) clearInterval(t);
+ }, 250);
+ }
+ fetch('/api/sso/status', { credentials: 'same-origin', headers: { Accept: 'application/json' }, cache: 'no-store' })
+ .then(r => r.json()).then(d => {
+ if (!d) return;
+ if (d.check) { location.replace('/sso/start?mode=check&to=' + encodeURIComponent(location.pathname + location.search + location.hash)); return; }
+ if (d.hint) fill(String(d.hint), String(d.peer || 'the other site'));
+ }).catch(() => {});
+})();
diff --git a/public/my.html b/public/my.html
index 27b7f3b..09ec8f4 100644
--- a/public/my.html
+++ b/public/my.html
@@ -1294,8 +1294,9 @@
-
-
+
+
+