Skip to content

Commit

Permalink
Revert MemoryStore used in expressSession
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Aug 8, 2024
1 parent 2f98cb9 commit 7e442ec
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions server/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const LibraryScanner = require('./scanner/LibraryScanner')
//Import the main Passport and Express-Session library
const passport = require('passport')
const expressSession = require('express-session')
const MemoryStore = require('./libs/memorystore')(expressSession)

class Server {
constructor(SOURCE, PORT, HOST, CONFIG_PATH, METADATA_PATH, ROUTER_BASE_PATH) {
Expand Down Expand Up @@ -219,12 +218,7 @@ class Server {
cookie: {
// also send the cookie if were are not on https (not every use has https)
secure: false
},
store: new MemoryStore({
checkPeriod: 86400000, // prune expired entries every 24h
ttl: 86400000, // 24h
max: 1000
})
}
})
)
// init passport.js
Expand Down

0 comments on commit 7e442ec

Please sign in to comment.