Skip to content

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

Description

@oldshaghat
  • 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions