AuthN & AuthZ BD class-1

Love Babber AuthN and AuthZ

In this class, we create a Signup page using these codes which are given below

Follow the same steps which are given in previous Notes (Backend class -3).

A new step is added to this class which is

  • npm install bcrypt

Install bcrypt to secure the user password.

index.js file code

database.js file code

.env file code

AuthSchema.js code

AuthController.js code (lines no. 1 to 29) Remaining code is below

AuthController.js code (30 -47)

AuthRoutes.js code

package.json code