The findOrCreateUser
function expects a user object returned. Why is this? What does it do with it?
Does it merely read and store the user's id for later reference?
Also, why doesn't it have a callback? Otherwise isn't it going to block whilst the code goes to the database?