forked from WikiDeck/wikideck
- server/account: JWKS-verified Dex ID tokens (RS256, exact issuer, audience/azp, exp/iat/nbf with skew, nonce), node-side code exchange as the public client "wikideck" (Dex sends no CORS headers), and an off-chain SQLite account <-> wallet store. Wallet ownership is proved by signing a single-use, domain-tagged off-chain challenge with the existing P-256 wallet key; consensus verifySignature is reused read-only. - Routes under /api/account: config, token, me, challenge, link, DELETE link/:address, names (leaderboard display names, never email). - src/auth: PKCE S256 client, sessionStorage-only tokens, LoginButton with initials avatar, wallet link, Capacitor system-browser + custom-scheme redirect support (completeLogin for appUrlOpen). - Hooks: one import + one app.use in server/testnet/http.ts (no CSP change), one import + one element in src/App.tsx. - tests/account-oidc and tests/account-link. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>