Advanced Node and Express - Implement the Serialization of a Passport User - _9UqA1DUSJplUasRs52Xx

You have to add the secret in the .env

SESSION_SECRET='whateverSomeString'

Set up Passport

Be sure to add ‘SESSION_SECRET’ to your .env file and give it a random value. This is used to compute the hash used to encrypt your cookie!

1 Like