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

Recommended usage or defaults for stringify / confusing default behavior #482

Open
oldshaghat opened this issue May 11, 2024 · 0 comments
Open

Comments

@oldshaghat
Copy link

  • I'm submitting a ...
    [x] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [x] question about how to use this project

  • Summary
    Probably a user error not a bug but - I was migrating to this from connect-mongodb-session; I have passport 0.7.0, express 4.19.2, express-session 1.18.0. Under a basic config that appeared to match the suggestions I was seeing an Object.parse error from MongoStore.js:220 ; const s = session && this.transformFunctions.unserialize(session.session);

This was fixed by supplying 'stringify : false' in my config options; I am not sure I understand what is happening under the hood but maybe this could be added to the readme if this is all expected behavior.

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

1 participant