bnoguchi/everyauth — Issue #97: configurable id key for user object?
Author: firebus
Created: 2011-10-11 17:29:49+00:00
State: open

howdy!

i'm using everyauth with mongodb (and not using mongoose at all).

when i look up a user object from mongo, the id is in a key named '_id'.

everyauth doesn't like this - it's looking for an id in a key named 'id'.

so i need to set user.id = user._id in a couple of places to make everyauth happy

am i doing it wrong? is there a better way to handle this case (other than using mongoose and mongoose-auth) or a way to configure which key contains the id?

thanks!