Javascript – How to extend Express Request Object with TypeScript
I am trying to add a property to the Request object of express First create a middleware to validate the session and the token brings the companyId import { verifyToken } from '../utils/jwt/jwt'; declare module 'express-serve-static-core' { interface Request {…