From 5c4bcf1b2a5c9839481f00c82621f9fc3c8dd4e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20L=C3=B3pez=20Dato?= Date: Tue, 2 Aug 2016 14:55:05 -0700 Subject: [PATCH] Expose session stores This allows other libraries or Passport strategies to leverage these stores as their defaults instead of implementing their own. --- lib/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index b025669..b48a3ac 100644 --- a/lib/index.js +++ b/lib/index.js @@ -2,7 +2,9 @@ var Strategy = require('./strategy') , AuthorizationError = require('./errors/authorizationerror') , TokenError = require('./errors/tokenerror') - , InternalOAuthError = require('./errors/internaloautherror'); + , InternalOAuthError = require('./errors/internaloautherror') + , SessionStore = require('./state/session') + , NullStore = require('./state/null'); // Expose Strategy. @@ -14,3 +16,6 @@ exports.Strategy = Strategy; exports.AuthorizationError = AuthorizationError; exports.TokenError = TokenError; exports.InternalOAuthError = InternalOAuthError; + +exports.SessionStore = SessionStore; +exports.NullStore = NullStore;