From be40bbae9cc4fa1551426638ec2dd1d4071be74a Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sat, 1 Jul 2023 17:09:23 +0000 Subject: [PATCH] fix: api key verification/dashboard login --- backend/src/api/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/api/auth.ts b/backend/src/api/auth.ts index f4486356..85e42ecb 100644 --- a/backend/src/api/auth.ts +++ b/backend/src/api/auth.ts @@ -149,7 +149,7 @@ export function initAuth(app: express.Express) { export function apiTokenAuthHandlers() { return [ - passport.authenticate("api-token", { failWithError: true }), + passport.authenticate("api-token", { failWithError: true, session: false }), // eslint-disable-next-line @typescript-eslint/no-unused-vars (err, req: Request, res: Response, next) => { return res.status(401).json({ error: err.message });