remove user-id

This commit is contained in:
Eddi3_As 2025-03-10 18:49:29 -04:00
parent f6afb1f7ed
commit 78f6993547

View file

@ -54,12 +54,7 @@ class UsersController {
const token = jwt.create(user.email, user._id);
let result = {
token: token,
userId: user._id
}
return res.status(200).json({ result });
return res.status(200).json({ token });
} catch (error) {
next(error);
}