passportjs v0.6 introduced a breaking change that no longer preserve session info by default for security reasons, preventing the session returnTo property from persisting after successfully logging in.
Property keepSessionInfo was added in order to give the option to go back to how it used to behave.
passportjs
v0.6 introduced a breaking change that no longer preserve session info by default for security reasons, preventing the sessionreturnTo
property from persisting after successfully logging in.Property
keepSessionInfo
was added in order to give the option to go back to how it used to behave.