Answers for "req.user typescript"

1

req.user typescript

// add this in your types.d.ts
declare global {
  namespace Express {
    interface Request {
      user: any
    }
  }
}
Posted by: Guest on August-24-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language