LionC / express-basic-auth

Plug & play basic auth middleware for express
325 stars 57 forks source link

add support for Promise-based authorizers #12

Open refractalize opened 6 years ago

refractalize commented 6 years ago

This PR does a couple of things (very happy to split of course)

  1. improves support for errors occurring in synchronous and asynchronous authorizers
  2. allows authorizers to return promises of true/false.