toa-passport

1.0.4 • Public • Published

toa-passport

Passport middleware for Toa

![NPM][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) {
}))

Package Sidebar

Install

npm i toa-passport

Weekly Downloads

0

Version

1.0.4

License

MIT

Last publish

Collaborators

  • lee715