Token Authentication for Applications/Websites with Node Servers.
Ready to use as a website/app server.
- Clone
- Install all packages using 'npm install'.
- Follow these steps to integrate it with your ongoing project.
Change the following whenever you use this repo into a new project:- 'APP.JS' - Mongoose connects to authToken DB. Change to whichever DB you want to connect. Find 'FIXME' Tag in the file.
- 'Secret Keys' - Change keys in 'jwtConfig.js' and 'tokenController.js' files for every new project.
- 'Auth based on Email' - User's email is used to authenticate and check for in the database. If you wish to change you can change in the controller files.