Categories
How To Javascript Node JS Programming

[How To] Implement Passport.js Authentication with Sails.js

Here we intend to demonstrate the procedure of local authentication i.e. by using a username and password. Step 1: Dependencies passport passport-local bcrypt List these dependencies inside application_directory/package.json  under dependencies.

Step 2: Create user model To create user model run the following command:

Now the user model will be created inside the /api/models/user.js […]