#req.user does not have the user type

4 messages · Page 1 of 1 (latest)

white estuary
#

Hi, was there any answer to this question? I'm going through the same problem. I'm not sure if I should create a new type extending express's Request or if there is a built-in type with generics from passport/nest that I could use

quaint lynx
#

I like to create an interface that extends the standard request and adds the fields that I need to it. Just seems to work more reliably than relying on passports types (especially when working with tests too)

white estuary
#

Thanks! I'll follow along with that, then 🙂

pine escarp
#

any update on this?