title: koa-router doesn't work with passport-local strategy
body: <p><em>passport.authenticate</em> from koa-passport doesn't work with local strategy. I use no sessions, no serializing. It's just simple passport example, but the server response is always 404.</p>
  
  <pre><code>const Koa = require('koa');
  const bodyParser = require('koa-bodyparser');
  const passport = require('koa-passport');
  const Router = require('koa-router');
  const LocalStrategy = require('passport-local').Strategy;
  
  const app = new Koa();
  
  app.use(bodyParser());
  app.use(passport.initialize());
  
  passport.use(new LocalStrategy({
      session: false,
      }, (email, password, done) =&gt; {
        if(email &amp;&amp; password){
            return done(null, [email, password]);
        }
        else {
            return done(null, false);
        }
      }
  ));
  
  const router = new Router();
  
  router.post('/auth', async (ctx) =&gt; {
      passport.authenticate('local', { session: false }, (err, user) =&gt; {
          if(!user)
              return ctx.body = 'Failed!';
  
          return ctx.body = { msg: 'Success' };
      });
  });
  
  app.use(router.routes());
  
  app.listen(3000, console.log('The server is started'));
  
  </code></pre>