toa-passport
v1.0.4
Published
Passport middleware for Toa
Downloads
16
Maintainers
Readme
toa-passport
Passport middleware for Toa
Usage
app.use(require('toa-passport').initialize())
// usage of toa-passport is as same as the original passport, except the context of toa will be
// afferented to callback funtion
router.get('/github/login', passport.authenticate('github'))
router.get('/github/callback', passport.authenticate('github', {
failureRedirect: '/notify'
}, function (err, ctx, user, info) {
}))