Sourced from passport's changelog.
[0.6.0] - 2022-05-20
Added
authenticate()
,req#login
, andreq#logout
accept akeepSessionInfo: true
option to keep session information after regenerating the session.Changed
req#login()
andreq#logout()
regenerate the the session and clear session information by default.req#logout()
is now an asynchronous function and requires a callback function as the last argument.Security
- Improved robustness against session fixation attacks in cases where there is physical access to the same system or the application is susceptible to cross-site scripting (XSS).
c33067b
0.6.03052bb4
Update changelog.42630cb
Merge pull request #900
from jaredhanson/fix-fixation8dd79fe
Use utils-merge rather than Object.assign for compatibility.4f6bd5b
Change keepSessionData to keepSessionData.46756e5
Silence verbose logging.987b191
Add tests.f8a175f
Add tests.29a90d6
No need to guard callback existence.bfba8a1
Add tests.