mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2024-11-10 09:13:36 +08:00
fix: correct conditional for enabling bearer token
This commit is contained in:
parent
75933d7e59
commit
f30dec6eac
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue