feat(web): wire auth pages with BetterAuth and route guards #83

Merged
jason.woltje merged 1 commits from feat/p3-002-auth-pages into main 2026-03-13 13:21:34 +00:00

1 Commits

Author SHA1 Message Date
d7dae21b2a feat(web): wire auth pages with BetterAuth client and route guards
Connect login/register forms to BetterAuth signIn.email() and signUp.email()
with error display, loading states, and disabled inputs during submission.
Add AuthGuard (redirects unauthenticated users to /login) on dashboard routes
and GuestGuard (redirects authenticated users to /chat) on auth routes.
Sign out in topbar now redirects to /login.

Refs #27

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 08:21:07 -05:00