mirror of
https://github.com/Floriansylvain/SnippetsManager.git
synced 2026-08-19 19:43:17 +02:00
Removed function keyword
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ import { getJwtSecret } from './utils/jwt.js'
|
|||||||
const app = express()
|
const app = express()
|
||||||
const appRouter = express.Router()
|
const appRouter = express.Router()
|
||||||
|
|
||||||
const authMiddleware: RequestHandler = function (req, res, next) {
|
const authMiddleware: RequestHandler = (req, res, next) => {
|
||||||
const token = req.cookies.jwt
|
const token = req.cookies.jwt
|
||||||
if (token == undefined) {
|
if (token == undefined) {
|
||||||
res.status(400).send({ message: 'Cannot find jwt auth cookie.' })
|
res.status(400).send({ message: 'Cannot find jwt auth cookie.' })
|
||||||
|
|||||||
Reference in New Issue
Block a user