I'm using Satellizer 0.15.5, Webpack 2 and Angular 1.6.6 Using email/password authentication as described here: Login with Email and Password
When login successful, everything works fine and in resolve, I get the response with a token. When username/password is wrong, my reject callback doesn't being invoked and I get a $q object inside resolve, while I supposed to get resolved response from the server.
Code which I use:
$auth.login(credentials).then(function(response) {
console.log(response);
}, function (error) {
console.error(error);
})
Object which I get when username/password is wrong:
Deferred {promise: Promise, resolve: ƒ, reject: ƒ, notify: ƒ}
notify:ƒ (progress)
promise:Promise {$$state: {…}}
reject:ƒ (reason)
resolve:ƒ (val)
__proto__:Object
Will try to debug Satellizer, but maybe know the issue? In known issues in Satellizer's repo I didn't find it. Satellizer library seen as abandoned so I asking this question here. Thank you for any help.