DEV Community

loading...

MERN simple authentication

Feruz00
MERN developer
・1 min read

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: https://github.com/Feruz00/travel-mern-app/tree/master
If someone have simple project this method please write comment or send link video or project. Thanks very much!!!

Discussion (0)