Handle ldapjs errors and allow handling errors as failures
ldapauth-fork
now re-emitsldapjs
errors and they can now be handled inauthenticate
.- Added new option
handleErrorsAsFailures
that makes the strategy callfail
instead oferror
with emitted or callback returned errors.