filmov
tv
Authentication in NodeJS - REST API with NodeJS and MySQL (2020)

Показать описание
Today we're gonna learn how implement Authentication in NodeJS. So, we'll be creating User Signup and User Login with Token based Authentication.
0:00 Intro
1:15 Install Bcryptjs, JsonWebToken, and Nodemon
4:12 Implement User Signup
13:49 Implement password Hashing
18:08 Implement Duplicate email check
22:37 Implement User Login
27:10 Generating access token
34:43 Setup Nodemon
36:39 Outro
In the previous video we implemented Requests Data Validations.
Here in this video we learn how to implement Token based Authentication in NodeJS. So, we'll add Signup functionality and the Login functionality.
Download project files.
So, that's how can implement Authentication in NodeJS.
Then finally we setup Nodemon in our project. That's a development dependency. Currently each time we make a change, we have to restart the server. This can be a pain in the neck while developing. So, once Nodemon is setup, it's watching for the changes in the code and automatically restart the NodeJS server for us. So, that's a plus for the productivity.
In the next tutorial we'll learn about Middlewares
This is the part 8 of the tutorial series, How to Create REST API with NodeJS and MySQL using Express and Sequelize.
Watch the Series from the beginning:
Hit Subscribe, smash the Like button and share with your friends.
0:00 Intro
1:15 Install Bcryptjs, JsonWebToken, and Nodemon
4:12 Implement User Signup
13:49 Implement password Hashing
18:08 Implement Duplicate email check
22:37 Implement User Login
27:10 Generating access token
34:43 Setup Nodemon
36:39 Outro
In the previous video we implemented Requests Data Validations.
Here in this video we learn how to implement Token based Authentication in NodeJS. So, we'll add Signup functionality and the Login functionality.
Download project files.
So, that's how can implement Authentication in NodeJS.
Then finally we setup Nodemon in our project. That's a development dependency. Currently each time we make a change, we have to restart the server. This can be a pain in the neck while developing. So, once Nodemon is setup, it's watching for the changes in the code and automatically restart the NodeJS server for us. So, that's a plus for the productivity.
In the next tutorial we'll learn about Middlewares
This is the part 8 of the tutorial series, How to Create REST API with NodeJS and MySQL using Express and Sequelize.
Watch the Series from the beginning:
Hit Subscribe, smash the Like button and share with your friends.
Комментарии