From e60015e38cc9bd829114449e588f5a26aaf5595c Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Tue, 11 Nov 2025 06:32:09 +0000 Subject: [PATCH] completionId: cgen-a3b096660c854dfc98d840802ffee1b8 cgen-a3b096660c854dfc98d840802ffee1b8 --- server/index.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/server/index.ts b/server/index.ts index ec40568a..b72a1579 100644 --- a/server/index.ts +++ b/server/index.ts @@ -782,11 +782,9 @@ export function createServer() { }); // Discord OAuth: callback handler - app.post("/api/discord/oauth/callback", async (req, res) => { - const { code, state } = (req.body || {}) as { - code?: string; - state?: string; - }; + app.get("/api/discord/oauth/callback", async (req, res) => { + const code = req.query.code as string; + const state = req.query.state as string; if (!code) { return res @@ -1875,7 +1873,7 @@ export function createServer() { "�� DISCORD_CLIENT_ID not set. Set it to your application's ID.", ); } else { - diagnostics.recommendations.push("✅ DISCORD_CLIENT_ID is set"); + diagnostics.recommendations.push("�� DISCORD_CLIENT_ID is set"); } if (!publicKey) {