🏥 System Diagnostic
Real-time health check for Scrabble integration
🔐 Authentication State
Not authenticated(You must be logged in to access this app)
📊 System Status
Database (Idioms)
Edge Function (generateGameToken)
Game Server (play.snappyidioms.com)
🔍 Redirect Loop Diagnostics
Session Guards (for Famous.ai):
__snappy_came_from_platform:not set
__snappy_early_token:none
Expected Configuration:
GAME_URL: https://play.snappyidioms.com
SNAPPY_LOGIN_URL: https://snappyidioms.com/login
⚠️ Famous.ai must use centralized config, not hardcoded URLs
Common Loop Causes:
- Missing
cameFromPlatform()in AppLayout.tsx handleSignInClick - Missing
cameFromPlatform()in RoundComplete onSignIn callback - Hardcoded URLs instead of config.GAME_URL
- Checking localStorage before checking ?auth=TOKEN
- Showing auth modal when JWT exists in URL params
✅ Required Guards:
if (isPlatformAuthLoading ||
isPlatformAuthenticated ||
cameFromPlatform()) {
return; // Block redirect
}🧪 End-to-End Token Test
Simulates the full auth flow: Token verification → Get pearl balance → Award pearls (dry run)
🖥️ Environment
Browser:
HeadlessChrome/128.0.0.0 Safari/537.36
Online:
✅ Yes
Language:
en-US
Timestamp:
10:24:50 AM