Issue Overview
Hi, I would like to know what suggestions/workaround you recommend to the current problem related to passport v0.6.0 incompatibility with cookie-session v2.0.0. Application throws error TypeError: req.session.regenerate is not a function so this is currently a big limitation.
The workaround provided on passport's repo is to downgrade to 0.5.x but this approach is vulnerable to CVE-2022-25896
Describe your environment
- Editor: VSCode
- Browser: Google Chrome
- Running on: MacBook Pro 2.6 GHz 6-Core Intel Core i7
Steps to Reproduce
- install npm dependencies
npm install
- configure database connection
- run project and try to login
Expected Behavior
- User is able to Log in with proper credentials
- User gets error message of invalid credentials (if user is not yet created or has invalid credentials)
Current Behavior
app crashes with: TypeError: req.session.regenerate is not a function
Possible Solution
downgrade passport version to 0.5.x but this approach is vulnerable to CVE-2022-25896
Screenshots / Video

Related Issues
Issue Overview
Hi, I would like to know what suggestions/workaround you recommend to the current problem related to
passportv0.6.0incompatibility withcookie-sessionv2.0.0. Application throws errorTypeError: req.session.regenerate is not a functionso this is currently a big limitation.The workaround provided on passport's repo is to downgrade to
0.5.xbut this approach is vulnerable to CVE-2022-25896Describe your environment
Steps to Reproduce
npm installExpected Behavior
Current Behavior
app crashes with:
TypeError: req.session.regenerate is not a functionPossible Solution
downgrade passport version to
0.5.xbut this approach is vulnerable to CVE-2022-25896Screenshots / Video
Related Issues