From df3fe8ebe02e8b91cc97c4c1b41347cdf7688e84 Mon Sep 17 00:00:00 2001 From: Tetardtek Date: Sat, 14 Mar 2026 08:40:32 +0100 Subject: [PATCH] =?UTF-8?q?fix(auth):=20correct=20SuperOAuth=20endpoint=20?= =?UTF-8?q?path=20=E2=80=94=20/api/v1/auth=20not=20/api/auth?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/middleware/auth.middleware.ts | 2 +- backend/src/routes/auth.routes.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/middleware/auth.middleware.ts b/backend/src/middleware/auth.middleware.ts index bfab8f5..11e3723 100644 --- a/backend/src/middleware/auth.middleware.ts +++ b/backend/src/middleware/auth.middleware.ts @@ -46,7 +46,7 @@ export const requireAuth = async ( } try { - const response = await fetch(`${superOAuthUrl}/api/auth/token/validate`, { + const response = await fetch(`${superOAuthUrl}/api/v1/auth/token/validate`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ token }), diff --git a/backend/src/routes/auth.routes.ts b/backend/src/routes/auth.routes.ts index e7adebe..3a2d31d 100644 --- a/backend/src/routes/auth.routes.ts +++ b/backend/src/routes/auth.routes.ts @@ -33,7 +33,7 @@ router.post("/session", async (req: Request, res: Response): Promise => { } try { - const response = await fetch(`${superOAuthUrl}/api/auth/token/validate`, { + const response = await fetch(`${superOAuthUrl}/api/v1/auth/token/validate`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ token }),