Skip to content

User authentication with JSON web tokens and the Passport module example

Notifications You must be signed in to change notification settings

SurendraVidiyala/user-auth-passport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

user-auth-passport

  • Exploring user authentication with JSON web tokens and the Passport module.

    • Use JSON web tokens for token-based user authentication
    • Use Passport module together with passport-local and passport-local-mongoose for setting up local authentication within your server.
  • Installing Passport and jsonwebtoken Node Modules

  • Install the Passport related Node modules and the jsonwebtoken module as follows:

     npm install passport passport-local passport-local-mongoose --save
     npm install jsonwebtoken --save