Network sign-in: the way back after signing in on InstantAdPay (Marty 2026-11-17)
networksso.js (the shared file, same in every network site): providers now also know every site in the hub's GET /v1/sso-sites, ?return=<site>&to=/path links on IAP/LinkSpin remember the way back, a missing wallet sends the member to the provider's wallet step first and then back, and the deliberate-tap state lives 1 hour (was 20 minutes) so a sign-up has time. Join links to InstantAdPay carry ?return=<this site>&to=/my. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -287,7 +287,7 @@ async function main() {
|
||||
ok(mp.page && mp.page.ad && mp.page.ad.id === OWNAD && mp.page.username === 'owner', 'member page: the owner\'s own ad', mp.page && mp.page.ad);
|
||||
const lv = (mp.page.line || []).map(x => [x.level, x.depth, x.owner]);
|
||||
ok(JSON.stringify(lv) === JSON.stringify([[1, 1, '@one'], [2, 4, '@four'], [3, 5, '@five'], [4, 6, '@six'], [5, 7, '@seven']]), 'five upline ads labelled LEVEL 1 to 5 in display order (real places 1,4,5,6,7): place 2 (no ad) and place 3 (no wallet) skipped, the 6th with an ad (topdog) not shown', lv);
|
||||
ok(mp.page.joinUrl === 'https://instantadpay.com/join/owner', 'join link: the InstantAdPay join page under the page owner', mp.page.joinUrl);
|
||||
ok(mp.page.joinUrl === 'https://instantadpay.com/join/owner?return=viraladblitz&to=%2Fmy', 'join link: the InstantAdPay join page under the page owner, with the way back here (2026-11-17)', mp.page.joinUrl);
|
||||
mp = await anon.json('/api/wire?page=member&u=nobody-here'); ok(mp._status === 404, 'unknown member: 404 from the page API');
|
||||
|
||||
console.log('8. verified visits, views and clicks');
|
||||
|
||||
Reference in New Issue
Block a user