fix(auth): correct SuperOAuth endpoint path — /api/v1/auth not /api/auth
Some checks failed
CI/CD — Build & Deploy / Build (push) Failing after 43s
CI/CD — Build & Deploy / Deploy to VPS (push) Has been skipped

This commit is contained in:
2026-03-14 08:40:32 +01:00
parent 9598cd8715
commit df3fe8ebe0
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ export const requireAuth = async (
} }
try { try {
const response = await fetch(`${superOAuthUrl}/api/auth/token/validate`, { const response = await fetch(`${superOAuthUrl}/api/v1/auth/token/validate`, {
method: "POST", method: "POST",
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
body: JSON.stringify({ token }), body: JSON.stringify({ token }),

View File

@@ -33,7 +33,7 @@ router.post("/session", async (req: Request, res: Response): Promise<void> => {
} }
try { try {
const response = await fetch(`${superOAuthUrl}/api/auth/token/validate`, { const response = await fetch(`${superOAuthUrl}/api/v1/auth/token/validate`, {
method: "POST", method: "POST",
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
body: JSON.stringify({ token }), body: JSON.stringify({ token }),