9 lines
340 B
TypeScript
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;
|
|
}
|