auth0-blog / nodejs-jwt-authentication-sample

A NodeJS API that supports username and password authentication with JWTs
MIT License
688 stars 267 forks source link

Updated Express error handling #25

Open JoeKarlsson opened 7 years ago

JoeKarlsson commented 7 years ago

res.send(err.status, err.message); has been depreciated in the current version of Express. res.status(err.status).send(err.message); is the updated way to handle custom status on a response.

This commit fixes this bug.