minor
This commit is contained in:
@@ -74,7 +74,7 @@ app.get(
|
||||
const token = jwt.sign({ userId: req.user._id }, process.env.JWT_SECRET, { expiresIn: "1h" });
|
||||
// Set token as a cookie or send it in the response
|
||||
res.cookie("token", token, { httpOnly: false, secure: false });
|
||||
res.redirect("http://localhost:3000/Welcom"); // Redirect to a frontend route after successful login
|
||||
res.redirect("http://localhost:3000/Welcome"); // Redirect to a frontend route after successful login
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user