This is a step-by-step tutorial repository which guides about the various type of authentication techniques that can be used in Node.js right from Plain Text Passwords to encryption, hashing, salting and oAuth.
If you would like to download the code and try it for yourself:
-
Clone the repo:
git clone https://github.com/ishandeveloper/node-authentication.git
-
Move to desired folder using:
cd\[Desired Folder]
-
Install packages:
npm install
(Important) Repositories beyond Lvl 2. require SECRET encryption key. So make sure to create a
.env
file with the following format.SECRET="YOUR ENCRYPTION KEY STRING"
-
Launch using :
npm start
-
Visit in your browser at: http://localhost:8080