1.0.4 • Published 8 years ago

toa-passport v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

toa-passport

Passport middleware for Toa

NPM

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) {
}))
1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.1

8 years ago