node package manager

koa-passport

Passport middleware for Koa

koa-passport

Passport middleware for Koa

NPM Dependency Status Build Status

koa-passport version koa version branch npm tag
1.x 1.x v1.x latest
2.x 2.x v2.x next
3.x 2.x master

Usage

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

Example Application

License

MIT