The secret option is not related to the connection string. It is its own environment variable.
As an aside. An example.env is not used for environment variables, it is just used as an example. Usually, you copy and rename it and add your own variables to it. It is called an example because it contains examples of the needed variables for the project which need to go into the actual .env file.
Ok
So all the code for the database connection is in server.js ?
I have to copy all my .env file and paste it in a variable in my server.js file ?
This is my console ouput :
express-session deprecated req.secret; provide secret option server.js:15:9
Listening on port 3000
Error: secret option required for sessions
process.env.SESSION_SECRET should be given a string value.
Open the secret tab on Replit and add the key SESSION_SECRET and give it some random string value. You can probably also just inline the string in the code.