candle-annotator/openspec
Marko Djordjevic 55fd91ff52 Add Next.js middleware for route protection (task 5.1)
- Create src/middleware.ts using Auth.js v5 auth() wrapper
- Protect /app/* routes: redirect unauthenticated users to /login
- Protect /api/* routes (except /api/auth/* and /api/health): return 401 JSON for unauthenticated requests
- Redirect authenticated users away from /login and /register to /app
- Mark task 5.1 as complete in tasks.md

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-20 10:18:15 +01:00
..
changes Add Next.js middleware for route protection (task 5.1) 2026-02-20 10:18:15 +01:00
specs Archive code-review-fix change and sync specs to main 2026-02-20 08:54:59 +01:00
config.yaml starting planning 2026-02-12 09:42:55 +01:00