Commit 75e88db
fix: remove conflicting middleware.ts, enhance proxy.ts auth
- Delete middleware.ts (Next.js 16 uses proxy.ts instead)
- Add JWT verification for page routes (not just token existence)
- Protect root / and all app pages (stats, skills, mcp, openbook)
- Clear invalid cookies on expired JWT
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 2fd3ce8 commit 75e88db
2 files changed
Lines changed: 12 additions & 63 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
64 | 74 | | |
65 | 75 | | |
66 | 76 | | |
| |||
0 commit comments