Wondering what’s next for npm?Check out our public roadmap! »

ss-passport-request

0.1.0 • Public • Published

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"

Keywords

none

Install

npm i ss-passport-request

DownloadsWeekly Downloads

2

Version

0.1.0

License

none

Last publish

Collaborators

  • avatar