Skip to content

bhushankalvani/JWT-Auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Token Auth

Token Authentication for Applications/Websites with Node Servers.

JSON Web Token Authentication for NodeJS Application.

Ready to use as a website/app server.

To Use this repo:

  1. Clone
  2. Install all packages using 'npm install'.
  3. Follow these steps to integrate it with your ongoing project.
    Change the following whenever you use this repo into a new project:
    1. 'APP.JS' - Mongoose connects to authToken DB. Change to whichever DB you want to connect. Find 'FIXME' Tag in the file.
    2. 'Secret Keys' - Change keys in 'jwtConfig.js' and 'tokenController.js' files for every new project.
    3. '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.

Releases

No releases published

Packages

No packages published