I have integrated and properly configured Facebook and Twitter login, however they only work when this code is added:
Accounts.onCreateUser(function (options, user) { return user; });
If I remove the code above I am receiving the following error:
Exception while invoking method 'login' undefined
Any ideas why?