Browse Source

tweak in case req.session not exists

master
Rich Brown 11 months ago
parent
commit
b48b0271b4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/index.js

+ 1
- 1
src/index.js View File

@@ -50,7 +50,7 @@ app.use(routesArray, session({

app.use((req, res, next) => {
// TODO: if part is new in security branch
if (req.session.cookie) {
if (req.session && req.session.cookie) {
// eslint-disable-next-line no-console
console.log(req.session.cookie.expires);
} else {


Loading…
Cancel
Save