Build Real App with React: User Authentication

Rem Zolotykh
1 min readDec 10, 2017

--

This episode is the most important in the whole series so far, because here we’ll handle fullstack user authentication. Here is the plan:

  • setup mongoose and create User model
  • implement user authentication by searching for user in database and check password
  • on react side we’ll implement conditional Login/Logout links, that depend on user authentication state
  • make login permanent by storing JWT in local storage, so user can reload page and stay logged in
  • user logout

--

--

Rem Zolotykh

Fullstack Javascript Developer. Teacher. Speaker. Board Gamer.