We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f86176d commit 1af7297Copy full SHA for 1af7297
1 file changed
lib/helpers/config.js
@@ -54,6 +54,11 @@ const validateDomainIsSet = (config) => {
54
}
55
};
56
57
+/**
58
+ * @desc Warn if JWT secret is still set to the default placeholder value.
59
+ * @param {object} config - application configuration object
60
+ * @returns {void}
61
+ */
62
const validateJwtSecret = (config) => {
63
if (config.jwt && config.jwt.secret === 'WaosSecretKeyExampleToChnageAbsolutely') {
64
console.log(chalk.red('+ Important warning: JWT secret is set to the default value. It should be changed in production via DEVKIT_NODE_jwt_secret.'));
0 commit comments