|
|
@ -678,7 +678,7 @@ async function initDatabase() {
|
|
|
|
|
|
|
|
|
|
|
|
if (! jwtSecretBean) {
|
|
|
|
if (! jwtSecretBean) {
|
|
|
|
console.log("JWT secret is not found, generate one.");
|
|
|
|
console.log("JWT secret is not found, generate one.");
|
|
|
|
jwtSecretBean = initJWTSecret();
|
|
|
|
jwtSecretBean = await initJWTSecret();
|
|
|
|
console.log("Stored JWT secret into database");
|
|
|
|
console.log("Stored JWT secret into database");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
console.log("Load JWT secret from database.");
|
|
|
|
console.log("Load JWT secret from database.");
|
|
|
|