This is the fourth part of React MERN Travel CouchSurfing project. In this video we added our custom authentication system how to register with name, email, password using Reactjs, Nodejs, Express, Mongodb, Mongoose, JWT tokens sessions. So after sign in your session is saved in the local storage for 1 hour you can stay logged in even if you leave the web app. And when you sign out your session will be erased from the local storage. We performed two security layers of check for this authentication process, one in the client side and the other one in the server side.
Higher Orders Functions
React.js
Material UI (MUI5)
Node.js
Express.js
Mongodb
Mongoose
JsonWebToken (JWT tokens)
Bcryptjs
The whole videos playlist:
• React MERN Project with Node, Expres...
Source Code on github:
https://github.com/codelikepro22/plac...
00:00 Introduction
01:25 Mongodb Connection
04:35 Creating User Model
07:07 Creating User Registration Controller
16:31 Sending Registration Request
20:31 Building custom flexible Fetch for all requests with error catching and user alert
30:31 How to pass client security check and the importance of server side code check security layer
32:36 Building custom try and catch function to wrap all the controllers (Higher Order Function)
35:07 Creating User login Controller
38:09 Sending Login Request
40:23 Checking unauthorised request and how the system log out the user automatically when the token is not valid for any reason
Смотрите видео React Node.js User Authentication - Password Login system, signup, in, out, Express, Mongodb, JWT онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Code Like Pro 28 Апрель 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 5,83 раз и оно понравилось 6 людям.