fedect1 / graduation-project-fedect1

graduation-project-fedect1 created by GitHub Classroom
MIT License
1 stars 0 forks source link

#Session Secret is not set properly #13

Open Dr4gon opened 1 year ago

Dr4gon commented 1 year ago

@fedect1 I only glanced at the complete error message quickly. Apparently there's something off with your secret in the session management:

data
: 
"<!DOCTYPE html><html><head><title></title><link rel=\"stylesheet\" href=\"/stylesheets/style.css\"></head><body><h1>secret option required for sessions</h1><h2></h2><pre>Error: secret option required for sessions\n    at session (/app/node_modules/express-session/index.js:200:12)\n    at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer

Maybe have a look what's going on there.

Reproducer:

  1. Setup clean codespace
  2. Add 2 .env files
  3. Start backend/frontend
  4. Signup
  5. booom