index.js 474 B

1234567891011121314151617181920212223242526
  1. /**
  2. * Module dependencies.
  3. */
  4. var Passport = require('./authenticator')
  5. , SessionStrategy = require('./strategies/session');
  6. /**
  7. * Export default singleton.
  8. *
  9. * @api public
  10. */
  11. exports = module.exports = new Passport();
  12. /**
  13. * Expose constructors.
  14. */
  15. exports.Passport =
  16. exports.Authenticator = Passport;
  17. exports.Strategy = require('passport-strategy');
  18. /**
  19. * Expose strategies.
  20. */
  21. exports.strategies = {};
  22. exports.strategies.SessionStrategy = SessionStrategy;