update dependencies and devDependencies, fix breaking changes from mystery-box update
[squeep-authentication-module] / lib / session-manager.js
index a0bea6a94ce46ae4ec785f8fdabd796b7d8ab881..9428203a9619243355f35fb0950f826b7b7db118 100644 (file)
@@ -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;
   }