From c5c3058f3d20aa898bd67c02baa3d995321e0ab5 Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Fri, 4 Dec 2020 22:28:17 +0100 Subject: [PATCH] clean up jwtauth ref #12 --- src/middlewares/jwtauth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/middlewares/jwtauth.ts b/src/middlewares/jwtauth.ts index bdb423b..3f77265 100644 --- a/src/middlewares/jwtauth.ts +++ b/src/middlewares/jwtauth.ts @@ -1,9 +1,9 @@ import * as jwt from "jsonwebtoken"; import { - ExpressMiddlewareInterface, Middleware + ExpressMiddlewareInterface } from "routing-controllers"; -@Middleware({ type: "before" }) +// @Middleware({ type: "before" }) export class JWTAuth implements ExpressMiddlewareInterface { use(request: any, response: any, next?: (err?: any) => any): any { const token = request.headers["auth"];