clean up jwtauth

ref #12
This commit is contained in:
Philipp Dormann 2020-12-04 22:28:17 +01:00
parent a7afcf4cd1
commit c5c3058f3d
1 changed files with 2 additions and 2 deletions

View File

@ -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 = <string>request.headers["auth"];