Meteor.loginwithpassword is not working when i give correct username passwrod


#1

Meteor.loginWithPassword({email:emailId},password, function (error,result) {
callback(error,result);
});

The above mentioned method is not giving response when i give correct username & password.

It’s giving the error when i pass wrong detials.

In the browser console, sock.js get calls going continuously


#2

When you say it’s not giving you a response, do you mean you’re not seeing anything stored in the result parameter of your callback function? If so that’s because the Meteor.loginWithPassword function doesn’t send a success result to the callback. The callback only receives one parameter - an error argument on failure.