diff --git a/networksso.js b/networksso.js index 5b48882..a446dfa 100644 --- a/networksso.js +++ b/networksso.js @@ -37,7 +37,7 @@ 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', bannerline: 'Downline Banners' }; +const NAMES = { iap: 'InstantAdPay', linkspin: 'LinkSpin', bannerline: 'Downline Banners', vbb: 'Viral Banner Blitz' }; // vbb = Viral Banner Blitz, a wallet site like Downline Banners (2026-11-14) const WALLET_RE = /^0x[0-9a-f]{40}$/; let C = null; // { self, peer, peerBase(), isProd, dataDir, db, member(req), accept(email, req, v), signIn(email, req, v), landing(to), signinPath(to), defaultPath, diff --git a/server.js b/server.js index 8ed4f38..aa2f584 100644 --- a/server.js +++ b/server.js @@ -643,7 +643,8 @@ async function boot() { // sessions only (the admin portal is never shared). An email that is not here yet (the 2-minute sync has not run) or is not // let in (LS_TESTERS) gets the normal email-code sign-in with the email filled in; nothing is created by the network sign-in. networksso.init({ self: 'linkspin', peer: 'iap', peerBase: IAP_BASE, isProd: IS_PROD, dataDir: DATA_DIR, db, defaultPath: '/ads', - wallets: { bannerline: () => String(process.env.BL_URL || 'https://downlinebanners.com').replace(/\/+$/, '') }, // Downline Banners by wallet (2026-11-13) + wallets: { bannerline: () => String(process.env.BL_URL || 'https://downlinebanners.com').replace(/\/+$/, ''), // Downline Banners by wallet (2026-11-13) + vbb: () => String(process.env.VBB_URL || 'https://viralbannerblitz.com').replace(/\/+$/, '') }, // Viral Banner Blitz by wallet (2026-11-14) wallet: async s => { const a = await accounts.byEmail(s.email); const addr = String(s.address || (a && a.address) || '').toLowerCase(); return addr ? { address: addr, name: '' } : null; }, member: async req => { // a wallet sign-in carries the address, not the email: find the account that owns the wallet (2026-11-13) const s = await auth.fromRequest(req); if (!s) return null;