Giter Club home page Giter Club logo

Comments (6)

dovtenenboim avatar dovtenenboim commented on July 17, 2024

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.

from angular-http-auth.

thaume avatar thaume commented on July 17, 2024

@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 ?

from angular-http-auth.

minasvisual avatar minasvisual commented on July 17, 2024

hi, i have the same problem. my rejection.status returned -1 for 401 code. how you guys fix then?

from angular-http-auth.

thaume avatar thaume commented on July 17, 2024

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.

from angular-http-auth.

witoldsz avatar witoldsz commented on July 17, 2024

The solution to this problem could be to introduce an AuthServiceProvider, so the authService could be configurable… The question is how to make it configurable "just enough" :-)

from angular-http-auth.

minasvisual avatar minasvisual commented on July 17, 2024

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!

from angular-http-auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.