Home

boring / v2

publicBoring-Software-Inc/v2
Overview Code History Branches Pull requestsIssuesInsights Campfire Docs
main
HomeOverview Code PRsIssues

fix(web): dev-login sign-in fallback + demo secret length

4 months ago

3d224c6
Authored
grim7/13/2026, 7:38:31 AM
end-to-end testing of dev:demo surfaced two issues:

- mintSession relied on signInEmail THROWING for a missing user, but
  with asResponse a missing user is a non-ok 401 — so the sign-up
  fallback never ran and the first persona login 500'd ("failed to
  establish dev session"). check res.ok before falling back. locked
  with a regression assertion (missing user ⇒ ok:false, not a throw).
- the demo's dev BETTER_AUTH_SECRET was < 32 chars, tripping better-auth's
  entropy warning on boot. lengthen it (local-only, never a real key).

verified live: active persona login → 200 + session cookie + landing;
authed dashboard renders home stats on pglite; unauthed / → auto-login
trampoline. checks: typecheck all, biome, boundaries, 216 tests.

Parent732e270

3 files changed
  • apps/web/src/lib/server/dev/handler.ts+12−5
  • packages/auth/src/dev-login.integration.test.ts+8−0
  • scripts/dev-demo.ts+2−1