Closed infinity1975 closed 8 years ago
You sent req.body.email but referred to req.body.username (which was only in the "db" model), i suggest you use email instead of username on all places.
Good call! We just merged a PR from a while back that allows the server to receive either a username or email. https://github.com/auth0/nodejs-jwt-authentication-sample/pull/5
You sent req.body.email but referred to req.body.username (which was only in the "db" model), i suggest you use email instead of username on all places.