Hand-off: free members without an on-chain id are keyed on their email; tester page wording

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-30 13:29:33 -05:00
parent 903b5065b9
commit 90a56bce74
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -37,7 +37,9 @@ function open(token) {
function verify(token) {
const r = open(token); if (r.error) return r;
const c = r.claims;
if (!c.memberId || !c.email) return { error: 'That sign-in link is missing your account.' };
if (!c.email) return { error: 'That sign-in link is missing your account.' };
// a free member with no wallet has no on-chain id yet: key them on their email until they link one
if (!(Number(c.memberId) > 0)) c.memberId = -parseInt(crypto.createHash('sha256').update(String(c.email).toLowerCase()).digest('hex').slice(0, 11), 16);
for (const [n, exp] of used) if (exp < Date.now()) used.delete(n);
if (used.has(c.nonce)) return { error: 'That sign-in link was already used.' };
used.set(c.nonce, c.exp);
+1 -1
View File
@@ -19,7 +19,7 @@
<ol class="steps">
<li><div><b>Sign in to InstantAdPay first</b>Open <a href="https://instantadpay.com/my" target="_blank" rel="noopener">instantadpay.com/my</a> in this same browser and sign in the usual way (email code).</div></li>
<li><div><b>Then tap this button</b>InstantAdPay signs you across. No new account, no new password.<br><a class="btn" style="margin-top:10px" href="https://instantadpay.com/api/my/driprunner">Open Drip Runner</a></div></li>
<li><div><b>Have a wallet on your IAP account</b>You can play without one, but POL payouts go to the wallet on file at InstantAdPay. Link it under Wallet on your IAP dashboard.</div></li>
<li><div><b>Have a wallet on your IAP account</b>You can play without one, but POL payouts go to the wallet on file at InstantAdPay, and your game progress follows your member id once a wallet is linked. Link it under Wallet on your IAP dashboard before you play.</div></li>
</ol>
<p class="muted">If you see "not on the tester list", your IAP account has not been added yet. Tell Marty which username you use.</p>
</div>