With a little help I\'ve arrived at the following code to promisify a passport.js login strategy.
var passport = require(\'passport\'); var LocalStrategy = r
Use:
.nodeify(done, {spread: true});
This allows multiple arguments to be passed to the 'done' callback.
More info on:
Bluebird nodeify documentation