The cli-auth page was fetching /api/hub/auth/device-code/.../approve but the Next.js rewrite proxies /api/auth/:path* — the extra /hub caused a 404. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| @@ -26,7 +26,7 @@ | ||
| 26 | 26 | async function approveWithToken(sessionToken: string) { |
| 27 | 27 | setStatus("loading"); |
| 28 | 28 | try { |
| 29 | const res = await fetch(`/api/hub/auth/device-code/${code}/approve`, { | |
| 29 | const res = await fetch(`/api/auth/device-code/${code}/approve`, { | |
| 30 | 30 | method: "POST", |
| 31 | 31 | headers: { |
| 32 | 32 | "Content-Type": "application/json", |
| 33 | 33 | |