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.
MERN stack complete course: https://www.udemy.com/course/mern-sta...
Insomnia API tester: https://insomnia.rest/
Finished code on github: https://github.com/jgbijlsma/mern-aut...
Chapters
00:00 "Check if logged" endpoint
04:22 Auth context
13:58 Conditional rendering based on logged-in state
19:55 Log out button
Watch video MERN stack secure authentication Part 11 | React auth context | JWT, Cookies, Bcrypt, React Hooks. online without registration, duration hours minute second in high quality. This video was added by user Devistry 15 February 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 10,232 once and liked it 176 people.