From 9a24af851d747723e11d421b607e46a4573d5a1a Mon Sep 17 00:00:00 2001 From: Priyatham-sai-chand Date: Wed, 14 Apr 2021 20:28:50 +0530 Subject: [PATCH] add debug printlines --- routes/users.js | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/users.js b/routes/users.js index 854489e..c664df0 100644 --- a/routes/users.js +++ b/routes/users.js @@ -144,6 +144,7 @@ router.post("/googlelogin", async (req, res) => { const user = await User.findOne({ email: email }); if (user) { const token = jwt.sign({ id: user._id }, process.env.jwtSecret); + console.log("payload name " + user.username + "\n"); if (token) { return res.json({ token,