diff --git a/server.js b/server.js index d9ec7de..2734b9b 100644 --- a/server.js +++ b/server.js @@ -28,7 +28,12 @@ app.post("/token", async (req, res) => { }); app.get("/callback", (req, res) => { - res.sendFile(path.join(__dirname, "callback/callback.html")); + // Get Hash + const hash = req.query.hash; + console.log("Hash:", hash); + + // return json + res.json({ hash }); }); const PORT = 3000;