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. We’ll be using react hooks and the context API to deal with the state management of the user authentication in the frontend.

TABLE OF CONTENTS

  • 01:40 Auth middleware
  • 04:35 Verify token
  • 11:23 Delete user route
  • 12:54 TokenIsValid route

Github frontend: https://github.com/jgbijlsma/mern-auth-template-front
Github backend: https://github.com/jgbijlsma/mern-auth-template-back

#mongodb #express #reactjs #node-js #web-development

MERN Stack User Authentication: Auth middleware | JWT, bcrypt, react hooks, context API
5.80 GEEK