Property 'user' does not exist on type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'. 29 req.user = decoded code example
Example: Property 'isAuth' does not exist on type 'Request'
// create file custom.d.ts and declare the following
declare namespace Express {
export interface Request {
user: any;
}
export interface Response {
user: any;
}
}