Skip to content

This is a setup template for using JWT Authentication/Authorisation in your app

Notifications You must be signed in to change notification settings

techemmy/Express-Authentication-with-JWT-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express-Authentication-with-JWT-Template

It uses Passport with custom LocalStrategy, JWT for authentication, and Passport-jwt for authorization and protection of routes.

To use Bearer tokens for authorization instead of query parameter:

  • Comment ExtractJWT.fromUrlQueryParameter in authentication/auth.js
  • And uncomment ExtractJWT.fromAuthHeaderAsBearerToken() in authentication/auth.js

About

This is a setup template for using JWT Authentication/Authorisation in your app

Topics

Resources

Stars

Watchers

Forks