senecajs / seneca-auth

A Seneca user authentication plugin for Hapi and Express
http://senecajs.org
MIT License
33 stars 29 forks source link

The `why` value in response is wrong #105

Open jacobbubu opened 7 years ago

jacobbubu commented 7 years ago

https://github.com/senecajs/seneca-auth/blob/master/lib/express-auth.js#L296

That might be?:

...
   if (err) return respond(null, {ok: false, why: err})
...