My FeedDiscussionsHashnode Enterprise
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
How to add user authentication to MERN stack?

How to add user authentication to MERN stack?

Hank Huang's photo
Hank Huang
·Mar 31, 2016

MERN is easy to understand and I had a great time building my first React/Redux app with it.

However, I don't know how to add user login function by linking react-router to authentication information contained in Redux tree. I found a package called react-router-redux don't know how to plug it into server.js in MERN, since MERN is using a different way of server rendering.

Highly appreciated for any solution Thanks~