Koa的Passport中间件
// body parser
var bodyParser = require('koa-bodyparser')
app.use(bodyParser())
// Sessions
var session = require('koa-session')
app.keys = ['secret']
app.use(session())
var passport = require('koa-passport')
app.use(passport.initialize())
app.use(passport.session())