DEV Community

Discussion on: Authentication and Sessions for MVC Apps with NestJS

Collapse
 
nomiracle profile image
Nomiracle

Thanks Christian, This article very useful. I had problem with “request.flash('loginError', 'Please try again!'); ” I cannot call flash method in request , Does anyone has same problem?

Collapse
 
mendelb profile image
Mendel Blesofsky

I experienced a similar issue. In my case I was getting the following error log:

property 'flash' does not exist on type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
Enter fullscreen mode Exit fullscreen mode

I realized I'd neglected to install the corresponding types package for connect-flash (@types/connect-flash) which resolved the issue for me.