add debug printlines

This commit is contained in:
Priyatham-sai-chand 2021-04-14 20:28:50 +05:30
parent fbe4d78d0c
commit 9a24af851d
No known key found for this signature in database
GPG Key ID: 243204491A97777A
1 changed files with 1 additions and 0 deletions

View File

@ -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,