rkusa/koa-passport

ctx.login is not a function

KingWu opened this issue · 1 comments

Show the error
ctx.login is not a function

rkusa commented

Have you added the passport middleware before calling ctx.login?

app.use(passport.initialize())
app.use(passport.session())