Skip to content

JSON.stringify fails parsing session object #13798

@calidion

Description

@calidion

Version: v6.11.0
Platform: Linux eric-ThinkPad-X220 4.8.0-36-generic #36~16.04.1-Ubuntu SMP Sun Feb 5 09:39:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Subsystem:

  1. inside express-session, MemeoryStore
  2. session printed:
Session {
  cookie: 
   { path: '/',
     _expires: 2017-06-19T17:23:33.834Z,
     originalMaxAge: 60000,
     httpOnly: true },
  user: 
   { nickname: 'testuser1497892948433',
     username: 'testuser1497892948433',
     password: 'b4006d83bf607caaf68ea6d4625245cc',
     email: 'testuser1497892948433@gmail.com',
     url: null,
     location: null,
     signature: null,
     profile: null,
     weibo: null,
     avatar: 'https://www.gravatar.com/avatar/487023740ef2996262d47b405ca1b1f8?size=48',
     githubId: null,
     githubUsername: null,
     githubAccessToken: null,
     blocked: false,
     score: 0,
     threads: 0,
     replies: 0,
     followers: 0,
     followings: 0,
     starred: null,
     level: null,
     active: true,
     accessToken: '44bd014e746112b3e6ac8a4c43b78671',
     salt: '[object Promise]',
     id: 89,
     goodAt: null,
     favoriteTags: 0,
     favoriteThreads: 0,
     createdAt: '2017-06-19T17:22:33.000Z',
     updatedAt: '2017-06-19T17:22:33.000Z',
     mailingReplies: null,
     passwordRetrieveTime: null,
     passwordRetrieveKey: null } }
  1. JSON.stringify parsed:
{"cookie":{"originalMaxAge":60000,"expires":"2017-06-19T17:23:33.834Z","httpOnly":true,"path":"/"},"user":{"0":"u","1":"s","2":"e","3":"r"}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssues that look for answers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions