adminjs-expressjs icon indicating copy to clipboard operation
adminjs-expressjs copied to clipboard

express-session deprecated pass resave option

Open Taha-khojasteh opened this issue 3 years ago • 1 comments

express-session deprecated undefined resave option; provide resave option at node_modules/@adminjs/express/lib/buildAuthenticatedRouter express-session deprecated undefined saveUninitialized option; provide saveUninitialized option at node_modules/@adminjs/express/lib/buildAuthenticatedRouter.js

I get that deprecation warning above, which needs to specify the resave and the saveUninitialized options to the value you want to use. See https://github.com/expressjs/session#options for their values and meanings.

Taha-khojasteh avatar Oct 30 '22 09:10 Taha-khojasteh

The documentation contains an example with those options: https://docs.adminjs.co/installation/plugins/express#authenticated

dziraf avatar Oct 30 '22 09:10 dziraf