Saturday, 24 August 2013

Add the whole user object to session on login in geddy app

Add the whole user object to session on login in geddy app

I have a geddy app set up with auth support. Currently, it only adds the
userId to the session on login. This is a problem because I want to
display usernames on the website and querying the mongo database every
time wouldn't be too good for performance.
Is there a way for me to add the whole user object to the session on
login. If that's too much, at least the userId and the username. I'm not
sure where the best place to put that code would be.

No comments:

Post a Comment