Repository navigation
Add a Mundane page that plays against the API with the Auth0 token - #97
Closed
shenanigansd wants to merge 2 commits into
Closed
shenanigansd wants to merge 2 commits into
shenanigansd wants to merge 2 commits into
Conversation
Logged-in players can start a Mundane game and play it hot-seat from /mundane. Access tokens are now requested for the Mundane API audience and sent as a bearer token on every call. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AWtXV8CMUpAX8ktbGjgtJr
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| 🔵 In progress View logs |
letsbuilda-dev | 173792b | Oct 11 2026, 03:14 PM |
Biome's noSvgWithoutTitle rule fails CI on main too (and on the open Dependabot PRs); the icon needs a <title> element. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AWtXV8CMUpAX8ktbGjgtJr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Brad · project thread
Before: logging in only showed your Auth0 profile on /account. Nothing used the token.
After: a new Mundane page in the nav lets a logged-in player start a game and play it hot-seat. The game id goes in the URL (
?game=…), so reloading picks the game back up. Moves the API refuses show its reason inline.This is the site half of end-to-end Auth0. The login now requests access tokens for the Mundane API audience, and
src/lib/mundane.tssends them as a bearer token to letsbuilda/mundane-backend#57.How: the Auth0 client gets
audiencefromPUBLIC_AUTH0_AUDIENCE, and a newgetAccessToken()wrapsgetTokenSilently(). The page renders withtextContentonly, like /account. The new config is two public build variables,PUBLIC_AUTH0_AUDIENCE=https://mundane.letsbuilda.devandPUBLIC_MUNDANE_API_URL=https://mundane.letsbuilda.dev. Add both to the Cloudflare build environment.Before merging: create the Auth0 API (identifier
https://mundane.letsbuilda.dev, RS256) and turn on Allow Offline Access, so refresh tokens work for it. Merge after mundane-backend#57 is deployed. Until then the page loads, but its API calls fail.Checked:
tscandastro buildpass, and Biome reports nothing new. The only error is the existing favicon a11y rule, which my newer local Biome flags. I couldn't click through a real Auth0 login from my sandbox. The API side was exercised separately on the Workers runtime.🤖 Generated with Claude Code
https://claude.ai/code/session_01AWtXV8CMUpAX8ktbGjgtJr
Generated by Claude Code