BillTracker/client/pages
null 2a07e762a2 fix: four review-confirmed regressions in auth + OIDC flows
All found by the multi-angle /code-review over the branch and verified
against the installed libraries:

- 401 discriminator: the session-expiry redirect keyed off a path prefix
  (!/auth/*) and falsely logged users out on /profile/change-password
  with a wrong current password. requireAuth's no-session 401 now carries
  the distinct AUTH_REQUIRED code — the only signal api.ts dispatches
  auth:expired on; wrong-credential 401s keep AUTH_ERROR on any path.
  Test updated to pin the code-based contract on both directions.
- OIDC RFC 9207: exchangeAndVerifyTokens rebuilt the callback URL with
  only code+state, dropping the iss parameter openid-client v6 validates
  when the provider advertises support (authentik does) — every OIDC
  login would fail post-upgrade. The full callback query is now forwarded.
- OIDC http issuers: v6 enforces HTTPS on discovery/endpoints (v5
  didn't) — breaking internal http:// providers on Docker networks.
  OIDC_ALLOW_INSECURE_HTTP=true opts back in (documented in .env.example).
- 2FA downgrade: authService's webauthn fallback caught ANY challenge
  error and silently downgraded to password-only login; now only the
  stale-flag 'No registered WebAuthn credentials' case falls through,
  everything else rethrows.
- Burned-challenge retry: the server consumes the single-use 2FA
  challenge before verifying (anti-replay), so after a server rejection
  a retry can only ever return 'Challenge expired'. LoginPage now resets
  to sign-in on server failure (WebAuthn AND the pre-existing TOTP trap);
  a browser-prompt cancel keeps retry (token still live). Also lazy-loads
  @simplewebauthn/browser out of the entry bundle, matching ProfilePage.

Server 252/252, client 52/52, OIDC smoke 44/44, probe 33/33, e2e 27.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-10 22:57:07 -05:00
..
AboutPage.tsx chore(deps)!: tailwind 3 -> 4 via @tailwindcss/vite (4i) 2026-07-10 18:03:15 -05:00
AdminPage.tsx style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
AnalyticsPage.tsx style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
BankTransactionsPage.tsx style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
BillsPage.tsx style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
CalendarPage.tsx chore(deps)!: tailwind 3 -> 4 via @tailwindcss/vite (4i) 2026-07-10 18:03:15 -05:00
CategoriesPage.tsx style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
DataPage.tsx style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
HealthPage.tsx style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
LoginPage.tsx fix: four review-confirmed regressions in auth + OIDC flows 2026-07-10 22:57:07 -05:00
NotFoundPage.tsx style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
PayoffPage.tsx style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
PrivacyPage.tsx style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
ProfilePage.tsx feat(auth): passkey / security-key UI — WebAuthn ships end to end 2026-07-10 17:30:14 -05:00
ReleaseNotesPage.tsx chore(deps)!: tailwind 3 -> 4 via @tailwindcss/vite (4i) 2026-07-10 18:03:15 -05:00
RoadmapPage.tsx chore(deps)!: tailwind 3 -> 4 via @tailwindcss/vite (4i) 2026-07-10 18:03:15 -05:00
SettingsPage.tsx style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
SnowballPage.tsx chore(deps)!: tailwind 3 -> 4 via @tailwindcss/vite (4i) 2026-07-10 18:03:15 -05:00
SpendingPage.tsx style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
StatusPage.tsx style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
SubscriptionCatalogPage.tsx style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
SubscriptionsPage.tsx chore(deps)!: tailwind 3 -> 4 via @tailwindcss/vite (4i) 2026-07-10 18:03:15 -05:00
SummaryPage.tsx style: apply Prettier across client + server (no behavior change) 2026-07-06 14:23:53 -05:00
TrackerPage.tsx chore(deps)!: tailwind 3 -> 4 via @tailwindcss/vite (4i) 2026-07-10 18:03:15 -05:00