Removed function keyword

This commit is contained in:
Florian Sylvain
2023-01-26 21:43:59 +01:00
parent 4d30607cca
commit 8ec166e88e
+1 -1
View File
@@ -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.' })