Fix profile persistence + badge ribbon alignment; 24h sessions
- BUG: /api/me never returned avatarUrl/bio/socials/lineBanner fields, so the Profile pane repopulated empty on reload — data WAS saved, just not surfaced. Now returned so avatar, bio, and social links persist visibly. - Achievement badge: member name drops the "@" and sits on a per-badge ribbonY (spark .728 / surge .779 / circuit .713 / nexus .709), gold with dark outline. - Sessions now expire in 24h (was 30d) so members re-login daily and see the login ad each day. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,7 @@ let IS_PROD = false;
|
||||
let SITE = 'instantadpay.com';
|
||||
|
||||
const CHALLENGE_TTL = 10 * 60 * 1000;
|
||||
const SESSION_TTL = 30 * 24 * 60 * 60 * 1000; // 30 days
|
||||
const SESSION_TTL = 24 * 60 * 60 * 1000; // 24h — forces a daily re-login so the login ad shows each day
|
||||
const challenges = new Map(); // addressLower -> {message, exp}
|
||||
|
||||
// ---- JSON session fallback ----
|
||||
|
||||
Reference in New Issue
Block a user