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

/loggedin always 0 #641

Closed
kylejeske opened this issue Jul 1, 2014 · 1 comment
Closed

/loggedin always 0 #641

kylejeske opened this issue Jul 1, 2014 · 1 comment

Comments

@kylejeske
Copy link

When using mean 0.3.3 and express 4, /loggedin will always return '0'

> db.sessions.find();
{ "_id" : "e_kCSw6NSd34TaGM8SYT8jAtuA2HhWwB", "session" : "{\"cookie\":{\"originalMaxAge\":null,\"expires\":null,\"secure\":false,\"httpOnly\":true,\"path\":\"/\"},\"passport\":{}}", "expires" : ISODate("2014-07-15T02:36:05.143Z") }

this has to do with passport being empty.

Any ideas?

@kylejeske
Copy link
Author

If the data object in Mongo isn't a ObjectID -- it will always fail.

This was my mistake. Somehow the _id ended up as a string instead of an ObjectID()

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