Req.User TypeScript
// add this in your types.d.ts
declare global {
namespace Express {
interface Request {
user: any
}
}
}
Frantic Flatworm
// add this in your types.d.ts
declare global {
namespace Express {
interface Request {
user: any
}
}
}