You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I would like to know what suggestions/workaround you recommend to the current problem related to passportv0.6.0 incompatibility with cookie-sessionv2.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
Issue Overview
Hi, I would like to know what suggestions/workaround you recommend to the current problem related to
passport
v0.6.0
incompatibility withcookie-session
v2.0.0
. Application throws errorTypeError: 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-25896Describe your environment
Steps to Reproduce
npm install
Expected Behavior
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-25896Screenshots / Video
Related Issues
The text was updated successfully, but these errors were encountered: