In-game sign-in: /signin runs the InstantAdPay kit (no trip to InstantAdPay), CSP admits instantadpay.com, dashboard and Level up links open InstantAdPay signed in

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-03 10:02:47 -05:00
parent dd00cb1b57
commit 9c693fcf63
7 changed files with 95 additions and 10 deletions
+8
View File
@@ -0,0 +1,8 @@
// In-game sign-in (2026-10-03): the InstantAdPay kit runs on this page, so a player signs in (or opens a free
// InstantAdPay account) without leaving Drip Runner. The kit hands back the game token; /auth opens it as before.
(function () {
var box = document.getElementById('iapSignin');
if (!window.IAPSignin) { box.innerHTML = '<p>Sign-in could not load. <a href="https://instantadpay.com/api/my/driprunner" style="color:var(--cyan)">Sign in on InstantAdPay instead</a>.</p>'; return; }
var m = /(?:^|;\s*)dr\.ref=([^;]+)/.exec(document.cookie || ''); // the share link a guest arrived on: their sponsor
IAPSignin.mount(box, { game: 'driprunner', ref: m ? decodeURIComponent(m[1]) : '', title: 'Sign in to run', oneTap: IAPSignin.origin + '/api/my/driprunner' });
})();