You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
brennannewton edited this page Aug 20, 2019
·
1 revision
Authentication
Passport.js
Passport is authentication middleware for Node.js. As it’s extremely flexible and modular, Passport can be unobtrusively dropped into any Express-based web application.
JWT (JSON Web Tokens)
JSON Web Tokens are an open, industry standard methods for representing claims securely between two parties
JWT's are strings of data that can be used to authenticate and exchange information between a server and a client
Steps for using JWT
Client sends credentials to the server
Server verifies the credentials, generates a JWT and sends it back as a response
Subsequent requests from the client have a JWT in the request headers
Server validates the token and if valid, provide the requested response