Question : req.user typescript
Answered by : frantic-flatworm-qbyasjfqrixi
// add this in your types.d.ts
declare global { namespace Express { interface Request { user: any } }
}
Source : | Last Update : Tue, 31 Aug 21
Answered by : frantic-flatworm-qbyasjfqrixi
// add this in your types.d.ts
declare global { namespace Express { interface Request { user: any } }
}
Source : | Last Update : Tue, 31 Aug 21