- 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> |
||
|---|---|---|
| .. | ||
| changes | ||
| specs | ||
| config.yaml | ||