latest work #20

Merged
philipp merged 233 commits from dev into main 2020-12-09 18:49:33 +00:00
Showing only changes of commit c5c3058f3d - Show all commits

View File

@ -1,9 +1,9 @@
import * as jwt from "jsonwebtoken"; import * as jwt from "jsonwebtoken";
import { import {
ExpressMiddlewareInterface, Middleware ExpressMiddlewareInterface
} from "routing-controllers"; } from "routing-controllers";
@Middleware({ type: "before" }) // @Middleware({ type: "before" })
export class JWTAuth implements ExpressMiddlewareInterface { export class JWTAuth implements ExpressMiddlewareInterface {
use(request: any, response: any, next?: (err?: any) => any): any { use(request: any, response: any, next?: (err?: any) => any): any {
const token = <string>request.headers["auth"]; const token = <string>request.headers["auth"];