Add Middleware to Validate a JSON Web Token (JWT)

Share this video with your friends

Send Tweet

Sending a JSON Web Token is one way to valid your identity as a user of an API or service. In this lesson, we will see how to add an Express middleware which will check for a valid JWT and return a 401 Unauthorized error if not.