add debug printlines
This commit is contained in:
parent
fbe4d78d0c
commit
9a24af851d
|
@ -144,6 +144,7 @@ router.post("/googlelogin", async (req, res) => {
|
||||||
const user = await User.findOne({ email: email });
|
const user = await User.findOne({ email: email });
|
||||||
if (user) {
|
if (user) {
|
||||||
const token = jwt.sign({ id: user._id }, process.env.jwtSecret);
|
const token = jwt.sign({ id: user._id }, process.env.jwtSecret);
|
||||||
|
console.log("payload name " + user.username + "\n");
|
||||||
if (token) {
|
if (token) {
|
||||||
return res.json({
|
return res.json({
|
||||||
token,
|
token,
|
||||||
|
|
Loading…
Reference in New Issue