The lobby is reused after the podium, but points were keyed only on
lobby+user, so a second match awarded nothing. The reward screen still
showed "You won!" (CSS tween) and then skipped the count because the
profile total had not changed.
Logged-in players follow the OIDC locale claim until they pick a
language in-game (zh-Hans maps to zh). The leaderboard resolves names
and avatars for everyone via GET /api/profiles, cached about 10
minutes and backfilled, so guests see real usernames. Fallbacks stay
if auth is down.
Stamp content-hash query strings on game.js, style.css and framework.js
at build time, send Cache-Control no-cache for HTML, and fall back to
English or the existing label so a stale catalog cannot print the key.
The leaderboard button also listens for pointerup on touch, like Play.
Auth has no public username-by-id lookup. A logged-in viewer's
GET /api/friends (cached for 10 minutes) plus their own profile fill
in real names and avatars on the global and friends boards. Those
identities are backfilled onto existing Meteors profiles so later
guest views can show them too. Placeholder names such as "3" for
auth:3 stay only when nobody known to the viewer has that info.
The profile lifetime-points total (the number the reward screen counts
up to) ranks the top 10. A second tab lists people on your
auth.timfalken.com friends list, using the existing GET /api/friends
token call. Guests can open the global tab; the friends tab asks them
to log in. The current player is highlighted when they are in the
list, with avatar and name.
Logged-out players see a prompt immediately after the session check.
Log in uses the existing auth.php menu flow; Play as Guest continues
to the main menu. The choice is stored in sessionStorage so it does
not reappear in the same tab, including after an auth callback, but
does on a fresh start. A logged-in player never sees the prompt.