From f30dec6eacfe0d2ac0031861b4f22f34dbab32c7 Mon Sep 17 00:00:00 2001 From: Sambhav Saggi <17993169+9p4@users.noreply.github.com> Date: Tue, 31 May 2022 19:46:07 -0400 Subject: [PATCH] fix: correct conditional for enabling bearer token --- backend/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app.js b/backend/app.js index 7f46dd3..263a965 100644 --- a/backend/app.js +++ b/backend/app.js @@ -18,7 +18,7 @@ const app = express(); app.use(logger("dev")); app.use(express.json()); app.use(express.urlencoded({ extended: false })); -if (process.env.ZU_DISABLE_AUTH === "true") { +if (process.env.ZU_DISABLE_AUTH !== "true") { app.use( bearerToken({ headerKey: "Bearer",