From ba1d271afa6913177792a3bffb54e7f6648d80c9 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Mon, 9 Aug 2021 20:09:01 +0800 Subject: [PATCH] fix jwt error --- server/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.js b/server/server.js index 62fe15d15..8696cc7b0 100644 --- a/server/server.js +++ b/server/server.js @@ -678,7 +678,7 @@ async function initDatabase() { if (! jwtSecretBean) { console.log("JWT secret is not found, generate one."); - jwtSecretBean = initJWTSecret(); + jwtSecretBean = await initJWTSecret(); console.log("Stored JWT secret into database"); } else { console.log("Load JWT secret from database.");