-
Notifications
You must be signed in to change notification settings - Fork 417
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
Even't function won't fire #138
Comments
Debugging, line 56 of http-auth-interceptor.js, the value of rejection.status is -1 and it doesn't fall in to the 401 case. |
@dovtenenboim it seems like a Chrome bug doesn't it ? I did a hotfix on my local lib, but that sucks. Are you going to open a PR ? |
hi, i have the same problem. my rejection.status returned -1 for 401 code. how you guys fix then? |
Right now I modified the library code to respond to -1 status code. Add a case in the switch over here : https://github.com/witoldsz/angular-http-auth/blob/master/src/http-auth-interceptor.js#L57 I can't think of a clean way to handle this thing. |
The solution to this problem could be to introduce an AuthServiceProvider, so the |
Mannn, i fix then!! use the angular version required by ng-resource, angular-http-auth but and simulate in device or ripple. work for me! |
I'm trying to use this plugin as my auth interceptor but for some reason it's not firing. I've used it in previous projects and have had no issues with the same implementation.
In my app.js on run:
Any idea why it won't fire? No console errors, nothing. I've included the plugins JS file, added it to apps modules etc. but having no luck.
The text was updated successfully, but these errors were encountered: