Skip to content

Commit

Permalink
Exposed the method to customize the SessionManager object
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Hathcock committed Oct 26, 2018
1 parent a6d204d commit 579b9cb
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions lib/authenticator.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,21 @@ Authenticator.prototype.session = function session(options) {
return this.authenticate('session', options);
};

// TODO: Make session manager pluggable
/*
/**
* Sets a custom SessionManager
*
* Examples:
*
* passport.sessionManager = new CustomSessionManager();
*
* @api public
*/

Authenticator.prototype.sessionManager = function(mgr) {
this._sm = mgr;
return this;
}
*/


/**
* Registers a function used to serialize user objects into the session.
Expand Down

0 comments on commit 579b9cb

Please sign in to comment.