Remove config dependency in lib/authenticate

Restructure lib/authenticate to set the authentication secret at a later
point in time via setAuthSecret.  This breaks playerManager.
This commit is contained in:
Hornwitser committed 2019-09-04 17:36:06 +02:00
1 parent 8c1c8d07a9
commit af2471b427
5 files changed
+55 -27

No files matched your search

@@ -3,7 +3,7 @@ const path = require("path");
class masterPlugin {
constructor({config, socketio, express, Prometheus}){
const authenticate = require("lib/authenticate")(config);
const authenticate = require("lib/authenticate");
this.config = config;
this.io = socketio;