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

MongoStore not working in app.js because of versions change #30

Open
Akhilkumar272002 opened this issue Aug 6, 2021 · 1 comment
Open

Comments

@Akhilkumar272002
Copy link

On session for passport store element is cannot be created in a direct way

@real-zit
Copy link

real-zit commented Sep 3, 2021

app.use(
session({
secret: 'keyboard cat',
resave: false,
saveUninitialized: false,
store: MongoStore.create({
mongoUrl: process.env.MONGO_URI,
autoRemove: 'interval',
autoRemoveInterval: 10,
}),
})
);

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