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
Owner

Summary

  • Login/register forms connected to BetterAuth signIn.email() / signUp.email()
  • Error display, loading states, disabled inputs during submission
  • AuthGuard protects dashboard routes — redirects unauthenticated to /login
  • GuestGuard on auth routes — redirects authenticated to /chat
  • Sign out redirects to /login

Test plan

  • pnpm typecheck — pass
  • pnpm lint — pass
  • pnpm format:check — pass
  • pnpm --filter @mosaic/web build — 5 routes generated

Closes #27

## Summary - Login/register forms connected to BetterAuth signIn.email() / signUp.email() - Error display, loading states, disabled inputs during submission - AuthGuard protects dashboard routes — redirects unauthenticated to /login - GuestGuard on auth routes — redirects authenticated to /chat - Sign out redirects to /login ## Test plan - [x] pnpm typecheck — pass - [x] pnpm lint — pass - [x] pnpm format:check — pass - [x] pnpm --filter @mosaic/web build — 5 routes generated Closes #27
jason.woltje added 1 commit 2026-03-13 13:21:28 +00:00
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>
jason.woltje merged commit 600da70960 into main 2026-03-13 13:21:34 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#83