fix: correct conditional for enabling bearer token

This commit is contained in:
Sambhav Saggi 2022-05-31 19:46:07 -04:00
parent 75933d7e59
commit f30dec6eac
No known key found for this signature in database
GPG key ID: 8F731DA8AFBAE35D

View file

@ -18,7 +18,7 @@ const app = express();
app.use(logger("dev")); app.use(logger("dev"));
app.use(express.json()); app.use(express.json());
app.use(express.urlencoded({ extended: false })); app.use(express.urlencoded({ extended: false }));
if (process.env.ZU_DISABLE_AUTH === "true") { if (process.env.ZU_DISABLE_AUTH !== "true") {
app.use( app.use(
bearerToken({ bearerToken({
headerKey: "Bearer", headerKey: "Bearer",