Coder Social home page Coder Social logo

Comments (6)

CodingAleCR avatar CodingAleCR commented on June 15, 2024 2

The feature was implemented, waiting on release though. Hope it helps you! @chitgoks

from http_interceptor.

CodingAleCR avatar CodingAleCR commented on June 15, 2024

As of right now there's not. You would have to check for this outside of the interceptor and do it manually. I could try to implement it but just out of curiosity: would you need to add parameters to the request or something like that?

from http_interceptor.

chitgoks avatar chitgoks commented on June 15, 2024

no parameters. my use case for using your interceptor is there is no way in google sign in to know when an access token has expired so instead, i use interceptors to check the expiry time and refresh before sending the request

however i noticed the access token sometimes expires before expiry time and i have no idea why. so i find out about this only in response.

in case this happens i wish to call the request again from the interceptor (if its possible)

from http_interceptor.

CodingAleCR avatar CodingAleCR commented on June 15, 2024

Ok, this seems more like a feature for a client, I think we could add a retry count and check for that when intercepting, that would mean that the request would have to be re-intercepted as well as the responses, is that the kind of behavior you want?

from http_interceptor.

chitgoks avatar chitgoks commented on June 15, 2024

if that will work the same way as calling an http method (post/get/delete, etc) again, then yes.
my goal is not having to call the url again.

i wonder if it is possible in the response, that you can call a method that will go back to the interceptResponse so it will re-run ?

from http_interceptor.

CodingAleCR avatar CodingAleCR commented on June 15, 2024

Please take a look at Release 0.3.0. Feedback is always welcomed.

from http_interceptor.

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.