X-Git-Url: http://git.squeep.com/?p=squeep-authentication-module;a=blobdiff_plain;f=lib%2Fsession-manager.js;fp=lib%2Fsession-manager.js;h=9428203a9619243355f35fb0950f826b7b7db118;hp=a0bea6a94ce46ae4ec785f8fdabd796b7d8ab881;hb=392502c5cc0cb12cf3c00ecd06c5c69b3e00d7e3;hpb=ec28f878b0d51ba03a0302060eb86aa5c69646b7 diff --git a/lib/session-manager.js b/lib/session-manager.js index a0bea6a..9428203 100644 --- a/lib/session-manager.js +++ b/lib/session-manager.js @@ -30,7 +30,8 @@ class SessionManager { this.authenticator = authenticator; this.options = options; this.indieAuthCommunication = new IndieAuthCommunication(logger, options); - this.mysteryBox = new MysteryBox(logger, options); + this.mysteryBox = new MysteryBox(options); + this.mysteryBox.on('statistics', common.mysteryBoxLogger(logger, _fileScope(this.constructor.name))); this.cookieLifespan = options.authenticator.inactiveSessionLifespanSeconds || 60 * 60 * 24 * 32; }