Passport-local strategy is a session based authentication i.e it uses Browser cookies and Backend sessions to manage logged-in and logged-out users.
View live Demo
Make sure to have Node and NPM installed
-
Clone this repo
git clone https://github.com/Neha9849/Auth_passport-local.git
-
Change directory
cd Auth_passport-local
-
Install the dependencies
npm i
-
Create config folder and add a file keys.js with following code-
module.exports ={
MongoURI: <your_key>,
}
- Start the server
npm start