mirror of
https://github.com/detleph/server.git
synced 2026-09-06 23:44:26 +02:00
Add teamleader authentication
This commit is contained in:
Vendored
+2
@@ -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 };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user