Updated 2021 MERN stack user authentication tutorial series. In this tutorial series, I’m setting up a project template for working with user authentication in the MERN stack. You will learn to register user accounts to a MongoDB database, log in users on the react frontend and verify logged in users. The authentication is secured by technologies such as JsonWebTokens, Bcrypt and HTTP-only cookies. We’ll be using react hooks and the context API to deal with the state management of the user authentication in the frontend.

Insomnia API tester: https://insomnia.rest/
Finished code on github: https://github.com/jgbijlsma/mern-auth-template-tutorial

Chapters

  • 00:00 MongoDB database setup
  • 04:40 Connecting the server to the database

#mongodb #express #node #react #javascript

MERN Stack Secure Authentication Part 2 | MongoDB | JWT, Cookies, Bcrypt, React Hooks, Context
2.30 GEEK