socioboard / Socioboard-5.0

Socioboard is world's first and open source Social Technology Enabler. Socioboard Core is our flagship product.
http://www.socioboard.org
Other
1.12k stars 361 forks source link

Session name & keys not loaded from config #374

Closed vaughngx4 closed 2 years ago

vaughngx4 commented 2 years ago

In socioboard-api/User/user.server.js:

app.use(
  session({
    name: 'session_name_from_config', //here
    keys: ['key1_from_config', 'key2_from_config'], //and here
    resave: false,
    saveUninitialized: true,
    cookie: {
      secure: true,
      httpOnly: true,
      expires: expiryDate,
    },
  })
);

Correct me if I'm wrong but does this not load the keys and name as the actual quoted text?

vaughngx4 commented 2 years ago

I've since fixed this. Will open a PR soon.

vaughngx4 commented 2 years ago

I opened a PR, closing as fixed.