From 8ec166e88ee42cc261f4cb4a30251f1298cfaa2c Mon Sep 17 00:00:00 2001 From: Florian Sylvain Date: Thu, 26 Jan 2023 21:43:59 +0100 Subject: [PATCH] Removed function keyword --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index b219188..804fa2e 100644 --- a/src/app.ts +++ b/src/app.ts @@ -9,7 +9,7 @@ import { getJwtSecret } from './utils/jwt.js' const app = express() const appRouter = express.Router() -const authMiddleware: RequestHandler = function (req, res, next) { +const authMiddleware: RequestHandler = (req, res, next) => { const token = req.cookies.jwt if (token == undefined) { res.status(400).send({ message: 'Cannot find jwt auth cookie.' })