authentication - Difference between Passport and JWT? -


i'm pretty new express/node - i'm trying figure out difference between passport , jwt can't find definitive answer? know can use 1 or other auth purposes in application, or npm package passport-jwt.

so want know is:

  1. what jwt passport doesn't (and vice versa)?

  2. what preferred method authentication/authorization , why?


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -