I'm trying to use the firebase changePassword() function together with the error call back.
changePassword: function(email, oldPassword, newPassword){
return auth.$changePassword(email, oldPassword, newPassword).then(function(error) {
console.log(error);
});
The script is effective and works. However the error callback does not. When the wrong oldpassword is entered, for example, nothing happens and nothing is logged to the console. When everything is done correctly, and the password is successfully changed, error is logged to the console and would appear to be undefined.
Anyone having a similar issue / know what I'm doing wrong?
Thanks