Skip to content

Commit d9a12e0

Browse files
committed
Discord OAuth fixed, defo this time
1 parent 75b9cc9 commit d9a12e0

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

pages/api/auth/discord/config-check.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ export default async function handler(
3535
},
3636
});
3737

38-
console.log(configs)
39-
4038
const configMap = configs.reduce((acc:any, config:any) => {
4139
acc[config.key] = typeof config.value === 'string' ? config.value.trim() : config.value;
4240
return acc;

pages/api/auth/discord/start.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ export async function handler(req: NextApiRequest, res: NextApiResponse) {
2424
acc[config.key] = typeof config.value === 'string' ? config.value.trim() : config.value;
2525
return acc;
2626
}, {} as Record<string, any>);
27-
clientId = clientId || configMap.robloxClientId;
27+
clientId = clientId || configMap.discordAppID;
2828
} catch (error) {
2929
console.error('Failed to fetch OAuth config from database:', error);
3030
}
3131
}
3232

3333
if (!clientId) {
34-
console.error('Missing Roblox OAuth configuration');
34+
console.error('Missing Discord OAuth configuration');
3535
return res.status(500).json({ error: 'OAuth configuration error' });
3636
}
3737

0 commit comments

Comments
 (0)