Fix device code approval 404 by removing extra /hub segment from API path

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>
Anton Kaminsky21d ago1d40800e9e99parent 7026cd9
1 file changed+1-1
web/app/cli-auth/page.tsx
@@ -26,7 +26,7 @@
2626 async function approveWithToken(sessionToken: string) {
2727 setStatus("loading");
2828 try {
29 const res = await fetch(`/api/hub/auth/device-code/${code}/approve`, {
29 const res = await fetch(`/api/auth/device-code/${code}/approve`, {
3030 method: "POST",
3131 headers: {
3232 "Content-Type": "application/json",
3333