Dear meteor forum members,
I have got a Meteor.loginWithPassword(myEmail, myPassword, myCallBack); line and a
function myCallBack()
{
…
}
Is it possible to transfer callback error data?
Like as :
Meteor.loginWithPassword(myEmail, myPassword, function(error) {
});
to
Meteor.loginWithPassword(myEmail, myPassword, myCallback(error));
I would like to process in mycallback
function myCallBack(error)
{
if (error){
console.log(‘err:’+error.reason);
}
…
}