mirror of
https://github.com/detleph/server.git
synced 2026-09-06 16:06:18 +02:00
Add middleware to require authentication on an endpoint
This commit is contained in:
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
import { AuthJWTPayload } from "./Controllers/admin_auth.controller";
|
||||
|
||||
declare module "express-serve-static-core" {
|
||||
interface Request {
|
||||
auth?: AuthJWTPayload & { isAuthenticated: boolean };
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user