It is not possible to find information (on passport.js ) about the general installation of passport.js and the declaration in node.js In tutorials, I always see express session middleware and cookie-parser , as indicated for passport , but session docs ( https://github.com/expressjs/session ) Notes:
'Starting with version 1.5.0, the cookie-parser middleware is no longer needed for this module. This module now reads and writes cookies directly to req / res. Using cookie-parser can lead to problems if the secret does not match this module and cookie-parser. ''
So do I need to use session and cookie-parser for passport for some reason, or can I only use session , do I need to change something?
Max yari
source share