Has anyone used Mongoose-auth? How do you over-ride findOrCreateUsers?
No need to copy those files into your own directory. Just do the following in your mongoose-auth configuration:
facebook: { everyauth: { myHostname: 'http://localhost:3000' , appId: 'YOUR APP ID HERE' , appSecret: 'YOUR APP SECRET HERE' , redirectPath: '/home' , findOrCreateUser: function (session, accessToken, fbUserMetadata) { } }}
For help on the undefined req.user
, file an issue on github with a link to a self-contained gist to re-create the issue, and I can help you out.