witoldsz / angular-http-auth

MIT License
2.38k stars 417 forks source link

Update http-auth-interceptor.js #49

Closed jameskleeh closed 10 years ago

jameskleeh commented 10 years ago

Update http-auth-interceptor to use the new response interceptors. The current way is deprecated.

maxwellium commented 10 years ago

looks good. +1

witoldsz commented 10 years ago

The current version of $http interceptor definition in angular-http-auth module is deprecated in AngularJS 1.2, but still works in 1.0.x. Does the new version, as proposed by this pull request, work with 1.0.x?

jameskleeh commented 10 years ago

No, it doesn't.

witoldsz commented 10 years ago

So I had to introduce tags... finally. v1.0.x is for AngularJS 1.0 with responseInterceptors, deprecated in AngularJS 1.2.x.