mirror of
https://github.com/cassoule/flopobot_v2.git
synced 2026-03-18 21:40:27 +01:00
hm2
This commit is contained in:
@@ -34,9 +34,6 @@ router.get("/discord", (req, res) => {
|
|||||||
* creates a JWT, and redirects the user back to the frontend.
|
* creates a JWT, and redirects the user back to the frontend.
|
||||||
*/
|
*/
|
||||||
router.get("/discord/callback", async (req, res) => {
|
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;
|
const { code } = req.query;
|
||||||
if (!code) {
|
if (!code) {
|
||||||
return res.status(400).json({ error: "Missing authorization code." });
|
return res.status(400).json({ error: "Missing authorization code." });
|
||||||
|
|||||||
Reference in New Issue
Block a user