This commit is contained in:
milo
2026-02-15 12:29:45 +01:00
parent 3115df3cdd
commit a8fac1cb19

View File

@@ -34,6 +34,9 @@ router.get("/discord", (req, res) => {
* creates a JWT, and redirects the user back to the frontend.
*/
router.get("/discord/callback", async (req, res) => {
console.log("JWT_SECRET:", process.env.JWT_SECRET)
console.log("DISCORD_CLIENT_SECRET:", process.env.DISCORD_CLIENT_SECRET)
const { code } = req.query;
if (!code) {
return res.status(400).json({ error: "Missing authorization code." });