Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

express-session deprecated pass resave option #91

Open
Taha-khojasteh opened this issue Oct 30, 2022 · 1 comment
Open

express-session deprecated pass resave option #91

Taha-khojasteh opened this issue Oct 30, 2022 · 1 comment

Comments

@Taha-khojasteh
Copy link

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.

@dziraf
Copy link
Contributor

dziraf commented Oct 30, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants