Add teamleader authentication

This commit is contained in:
Stephan
2022-05-27 22:48:16 +02:00
parent 197d1a52a3
commit a9c182cf64
3 changed files with 79 additions and 2 deletions
+2
View File
@@ -1,7 +1,9 @@
import { AuthJWTPayload } from "./Controllers/admin_auth.controller";
import { TeamleaderJWTPayload } from "./Middleware/auth/teamleaderAuth";
declare module "express-serve-static-core" {
interface Request {
auth?: AuthJWTPayload & { isAuthenticated: boolean };
teamleader?: TeamleaderJWTPayload & { isAuthenticated: boolean };
}
}