From fb18dae0a8bad235501585142b79edb3da2e87a9 Mon Sep 17 00:00:00 2001 From: hippoz Date: Thu, 9 Sep 2021 17:52:39 +0300 Subject: [PATCH] remove legacy code --- brainlet/secret.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/brainlet/secret.js b/brainlet/secret.js index 26e1147..f60976e 100755 --- a/brainlet/secret.js +++ b/brainlet/secret.js @@ -1,10 +1,3 @@ module.exports = { jwtPrivateKey: "KEY", }; - -// Set default values -// You shouldn't need to touch this for configuring this -if (module.exports.jwtPrivateKey === "KEY") { - console.error("config: secret: jwtPrivateKey was not specified in secret.js. A randomly generated private key will be used instead."); - module.exports.jwtPrivateKey = require("crypto").randomBytes(129).toString("base64"); -}