ss-passport-request

Exposes passport request public methods

npm install ss-passport-request
2 downloads in the last week
4 downloads in the last month

Socketstream passport rpc middleware

Usage example

middleware/passport.coffee

passport    = require 'passport'
ssPassport  = require 'ss-passport-request'

exports.initialize = (options = {}) ->
  return passport.initialize()       

exports.session = (options = {}) ->
  return passport.session()  

exports.req = (options = {})->
  return ssPassport

rpc/...

req.use "session"
req.use "passport.initialize"
req.use "passport.session"
req.use "passport.req"
npm loves you