mirror of
https://github.com/Priyatham-sai-chand/Locaft-backend.git
synced 2026-10-05 08:51:33 -07:00
add debug printlines
This commit is contained in:
parent
fbe4d78d0c
commit
9a24af851d
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue