-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auth.login() does not return rejection #88
Comments
@Coroecram That is because you enable In your example, you can ignore the intercepor by passing Auth.login($scope.user, { interceptAuth: false }).then(function(){
$state.go('home');
}, function(error){
// Error handing
}); |
closed in #89 |
@leomao10 Thank you very much, I got that from a tutorial which then acted like it still handled the errors normally. |
When there is are invalid Auth.login credentials the failure function is never called. Only a 401 unauthorized access is returned.
My code:
Auth.login($scope.user).then(function(){
$state.go('home');
}, function(error){
// never called
});
The text was updated successfully, but these errors were encountered: