Skip to content

Commit 1af7297

Browse files
fix(config): add JSDoc to validateJwtSecret helper
1 parent f86176d commit 1af7297

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/helpers/config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ const validateDomainIsSet = (config) => {
5454
}
5555
};
5656

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+
*/
5762
const validateJwtSecret = (config) => {
5863
if (config.jwt && config.jwt.secret === 'WaosSecretKeyExampleToChnageAbsolutely') {
5964
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

Comments
 (0)