cookieParser - i dont see the cookie in the web #66710
Replies: 3 comments
-
|
Thanks for posting in the GitHub Community, @ShonChassel ! We're happy you're here. You are more likely to get a useful response if you are posting your question in the applicable category and include details beyond just code, the Projects and Issues category is solely related to conversations around the GitHub products Issues and Projects. We’ve moved your post to our new Programming Help 🧑💻 category, which is more appropriate for this type of discussion. Please review our guidelines about the Programming Help category for more information. |
Beta Was this translation helpful? Give feedback.
-
|
Did you add |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Feature Area
Issues
Body
export const login = async (req, res, next) => {
try {
const user = await User.findOne({ username: req.body.username });
if (!user) return next(createError(404, "User not found!"));
} catch (err) {
next(err);
}
};
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions