DEV Community

Feruz00
Feruz00

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: 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!!!

Top comments (1)

Collapse
 
sdasdzijxczxic profile image
zcxj sdasdzijxczxic

hey man did you find the solution to this problem