lib/passportMiddleware.js
function proxyVerifyCallback (fn, args, done) {
  const {callback, index} = findCallback(args);
  args[index] = function (err, user) {
    done(err, user, callback);
  };
  fn.apply(null, args);
}
function proxyVerifyCallback (fn, args, done) {
  const {callback, index} = findCallback(args);
  args[index] = function (err, user) {
    done(err, user, callback);
  };
  fn.apply(null, args);
}
function proxyVerifyCallback ( fn , args , done ) { const { callback , index } = findCallback ( args ) ; args [ index ] = function ( err , user ) { done ( err , user , callback ) ; } ; fn . apply ( null , args ) ; }
Intercepts passport callback
@param fn
@param args
@param done
Intercepts passport callback