2025SELab2-project-Dwengo/backend/src/middleware/auth/authenticated-request.d.ts
2025-03-09 22:57:15 +00:00

9 lines
340 B
TypeScript

import { Request } from 'express';
import { JwtPayload } from 'jsonwebtoken';
import { AuthenticationInfo } from './authentication-info.js';
export interface AuthenticatedRequest extends Request {
// Properties are optional since the user is not necessarily authenticated.
jwtPayload?: JwtPayload;
auth?: AuthenticationInfo;
}