From 7f6fb19dae6a515caf0210b9f12c773181c83f3f Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 9 Nov 2025 08:14:22 +0000 Subject: [PATCH] Update OAuth callback redirect URI to match Discord portal cgen-266c299d97a447b9b7dd541902c20e69 --- api/discord/oauth/callback.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/discord/oauth/callback.ts b/api/discord/oauth/callback.ts index 8b869293..f34b5125 100644 --- a/api/discord/oauth/callback.ts +++ b/api/discord/oauth/callback.ts @@ -46,7 +46,7 @@ export default async function handler(req: any, res: any) { } try { - const redirectUri = `${process.env.VITE_API_BASE || "https://aethex.dev"}/api/discord/oauth/callback`; + const redirectUri = `${process.env.VITE_API_BASE || "https://aethex.dev"}/discord`; // Exchange code for access token const tokenResponse = await fetch(