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:
martbost
2026-11-17 07:09:33 -06:00
parent 65cc5ea565
commit 828abce0fd
3 changed files with 134 additions and 19 deletions
+3 -2
View File
@@ -23,7 +23,7 @@
<h2 style="font-size:26px">Sign in</h2>
<p class="muted" style="margin:8px 0 0">Use your network account (one account across the network), or sign with your wallet: a free signature that cannot move funds.</p>
<div class="row" style="margin-top:16px"><a class="btn ink" href="/sso/start?mode=go&amp;to=/my">Sign in with my network account</a><button class="btn" id="walletBtn" type="button">Sign in with my wallet</button></div>
<p class="muted" style="font-size:14px;margin:12px 0 0">Wallet: SafePal or any other crypto wallet on Polygon. Not a member yet? <a id="joinLink" href="https://instantadpay.com/join">Join free</a>.</p>
<p class="muted" style="font-size:14px;margin:12px 0 0">Wallet: SafePal or any other crypto wallet on Polygon. Not a member yet? <a id="joinLink" href="https://instantadpay.com/?return=viraladsource&amp;to=%2Fmy">Join free</a>.</p>
</section>
<div id="dash" hidden>
<p class="muted" id="who" style="margin:8px 0 0"></p>
@@ -36,6 +36,7 @@
<label class="f">First line<input type="text" id="line1" maxlength="90" required></label>
<label class="f">Second line <small>optional</small><input type="text" id="line2" maxlength="90"></label>
<label class="f">Your link <small>an https page that loads, or one of your own LinkSpin spin links</small><input type="url" id="link" placeholder="https://" required></label>
<div class="picker" id="aiBox" hidden><div class="ph"><span>No words yet? Let AI write it from your link</span><button type="button" class="btn sm" id="aiWrite" style="min-height:30px">Write my ad from my link</button></div><p class="muted" id="aiHelp" style="margin:0;padding:8px 12px;font-size:13px">Put your link in the box above first. We read that page and suggest 3 ads using only what it says. Pick one to fill in your headline and first line, then change any words you like. Nothing is posted until you tap Post.</p><div id="aiList"></div></div>
<div class="picker" id="picker"><div class="ph"><span>Use one of my spin links</span><button type="button" class="btn sm" id="loadSpins" style="min-height:30px">Show my spin links</button></div><div id="spinList"></div></div>
<label class="row" style="gap:8px;font-size:14px"><input type="checkbox" id="track" checked> Track clicks with LinkSpin (a tracked link on your own LinkSpin account)</label>
<button class="btn coral" type="submit" id="saveAd">Post my free ad</button>
@@ -67,6 +68,6 @@
<script src="/assets/common.js?v=2"></script>
<script src="/assets/chat.js?v=1" defer></script>
<script src="/assets/wallet.js?v=2"></script>
<script src="/assets/my.js?v=2"></script>
<script src="/assets/my.js?v=20261117a"></script>
</body>
</html>