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 }),