1.0.4 • Published 8 years ago
toa-passport v1.0.4
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) {
}))