From e296cf140fb0cabb5b568ed546cde4dd5ddfc911 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 9 Dec 2024 12:55:49 +0100 Subject: [PATCH] Fix check types --- packages/backend-core/src/environment.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend-core/src/environment.ts b/packages/backend-core/src/environment.ts index 56d9cd6e10..954fdd4135 100644 --- a/packages/backend-core/src/environment.ts +++ b/packages/backend-core/src/environment.ts @@ -134,10 +134,10 @@ const environment = { BUDIBASE_ENVIRONMENT: process.env.BUDIBASE_ENVIRONMENT, JS_BCRYPT: process.env.JS_BCRYPT, JWT_SECRET: process.env.JWT_SECRET - ? createSecretKey(Buffer.from(process.env.JWT_SECRET)) + ? createSecretKey(process.env.JWT_SECRET, "utf8") : undefined, JWT_SECRET_FALLBACK: process.env.JWT_SECRET_FALLBACK - ? createSecretKey(Buffer.from(process.env.JWT_SECRET_FALLBACK)) + ? createSecretKey(process.env.JWT_SECRET_FALLBACK, "utf8") : undefined, ENCRYPTION_KEY: process.env.ENCRYPTION_KEY, API_ENCRYPTION_KEY: getAPIEncryptionKey(),