Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
User doesn't get populated after authentication with databases that don't use _id #71
You can pass the
I'm not sure how to approach this. We could try and infer the database type the user is using but that is going to be way complex and probably have undesired consequences.
Maybe if the user isn't found we throw an error? I can't think of a case where the user shouldn't be found using the id from the auth token. @daffl thoughts?