remove legacy code

This commit is contained in:
hippoz 2021-09-09 17:52:39 +03:00
parent 81a08101e9
commit fb18dae0a8
No known key found for this signature in database
GPG key ID: 7C52899193467641

View file

@ -1,10 +1,3 @@
module.exports = { module.exports = {
jwtPrivateKey: "KEY", 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");
}