seneca-web-adapter-express.js
function authRoute(seneca, options, context, method, route, middleware, auth) {
  const opts = {
    failureRedirect: route.auth.fail,
    successRedirect: route.auth.pass
  }

  const routeArgs = [route.path]
    .concat([auth.authenticate(route.auth.strategy, opts)])
    .concat(middleware)
    .concat([
      (request, reply, next) => {
        handleRoute(seneca, options, request, reply, route, next)
      }
    ])

  context[method].apply(context, routeArgs)
}
function authRoute(seneca, options, context, method, route, middleware, auth) {
  const opts = {
    failureRedirect: route.auth.fail,
    successRedirect: route.auth.pass
  }

  const routeArgs = [route.path]
    .concat([auth.authenticate(route.auth.strategy, opts)])
    .concat(middleware)
    .concat([
      (request, reply, next) => {
        handleRoute(seneca, options, request, reply, route, next)
      }
    ])

  context[method].apply(context, routeArgs)
}
function authRoute ( seneca , options , context , method , route , middleware , auth ) { const opts = { failureRedirect : route . auth . fail , successRedirect : route . auth . pass } const routeArgs = [ route . path ] . concat ( [ auth . authenticate ( route . auth . strategy , opts ) ] ) . concat ( middleware ) . concat ( [ ( request , reply , next ) => { handleRoute ( seneca , options , request , reply , route , next ) } ] ) context [ method ] . apply ( context , routeArgs ) }
Auth routes call passport.authenticate and can and do redirect depending on pass or failure. Generally this means you don't need a seneca handler set as the redirects happend instead.
Auth routes call passport . authenticate and can and do redirect depending on pass or failure . Generally this means you don t need a seneca handler set as the redirects happend instead .