X-Git-Url: http://git.squeep.com/?p=squeep-authentication-module;a=blobdiff_plain;f=lib%2Fauthenticator.js;fp=lib%2Fauthenticator.js;h=040834fd650cd46b4d61f6b03c1acf647721d0ff;hp=5a4cd7d5f8beffad124ffb0bfcd5ed643c156c73;hb=392502c5cc0cb12cf3c00ecd06c5c69b3e00d7e3;hpb=ec28f878b0d51ba03a0302060eb86aa5c69646b7 diff --git a/lib/authenticator.js b/lib/authenticator.js index 5a4cd7d..040834f 100644 --- a/lib/authenticator.js +++ b/lib/authenticator.js @@ -51,7 +51,8 @@ class Authenticator { throw new Error('no authentication mechanisms available'); } - 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; }