DEV Community


Posted on

MERN simple authentication

Hello everyone. I am beginner MERN stack. I learn what need and this day try create simple MERN login/register app. I use passportjs for authentication and passport-local-mongoose for plugin database. When I send data using postman all successfully: user loginned registered and logouted. But when I send in frontend I get only currect message in login. But req.user cannot get.
this is my code:
If someone have simple project this method please write comment or send link video or project. Thanks very much!!!

Discussion (0)