Add Auth middleware;

This commit is contained in:
Stefan-5422
2022-03-23 12:59:33 +01:00
parent 4df48360b5
commit 67d4878c59
2 changed files with 57 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
import { authJwt } from "./controller/auth.controller";
declare module "express-serve-static-core" {
interface Request {
auth?: authJwt & { isAuthenthicated: boolean };
}
}