From 5d692666f8d04c89aa007b836e39c7fdf8dcbced Mon Sep 17 00:00:00 2001 From: Raad <149825178+raadtotheraad@users.noreply.github.com> Date: Tue, 21 Jul 2026 17:31:43 +0200 Subject: [PATCH] Update redirectUri for Roblox authentication callback --- pages/api/auth/roblox/start.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/api/auth/roblox/start.ts b/pages/api/auth/roblox/start.ts index 096787a5..4618693d 100644 --- a/pages/api/auth/roblox/start.ts +++ b/pages/api/auth/roblox/start.ts @@ -15,7 +15,7 @@ export default async function handler(req: AuthenticatedRequest, res: NextApiRes let clientId: string | undefined; let redirectUri: string | undefined; clientId = process.env.ROBLOX_CLIENT_ID; - redirectUri = `${process.env.PLANETARY_CLOUD_URL ? `https://${process.env.PLANETARY_CLOUD_URL}` : process.env.NEXTAUTH_URL || process.env.PUBLIC_URL}/api/auth/discord/callback`; + redirectUri = `${process.env.PLANETARY_CLOUD_URL ? `https://${process.env.PLANETARY_CLOUD_URL}` : process.env.NEXTAUTH_URL || process.env.PUBLIC_URL}/api/auth/roblox/callback`; if (!clientId || !redirectUri) { try { const configs = await prisma.instanceConfig.findMany({ @@ -55,4 +55,4 @@ export default async function handler(req: AuthenticatedRequest, res: NextApiRes authUrl.searchParams.set('state', state); res.redirect(authUrl.toString()); -} \ No newline at end of file +}