Coder Social home page Coder Social logo

ajax-interceptor's Introduction

Hi 👋, I'm Sébastien, a freelance developer living near Paris, specialized in React and React-Native.

I’m currently working on Docusaurus, a React-based static site generator with a focus on documentation, as a contractor for Facebook.

Website - LinkedIn - StackOverflow - Dev.to

Twitter Follow


I am the author of ThisWeekInReact.com, the best newsletter to stay up-to-date with the React ecosystem. Join more than 15000 readers today! 🔥

ThisWeekInReact.com banner


I like:

  • remote work: since 2014
  • flexibility and trust: I work for people that care about outcomes
  • interesting projects: I choose carefully, to keep learning
  • part-time: working on multiple projects gives a diverse experience
  • consulting, coaching, training, audits: the best ROI for my customers, and a higher rate for me

I chose a different path than most French contractors (on-site, full-time, multi-years contracts).

Previously, I was a Java/Scala developer for a few years, and I didn't like JavaScript much :)


slorber's github stats

ajax-interceptor's People

Contributors

slorber avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ajax-interceptor's Issues

QUESTION: queue up and retry all failed requests

Hi,
thanks for this very handy class. I was wondering if you looked into queuing up all the failed xhr requests upon token expiration and retrying them? I am using refresh tokens in my app which expire every couple of hours and upon expiration the token is automatically refreshed, and while this is happening all the requests that fail with an Unauthorized statue are queued up and retried once the token was successfully refreshed.

Since direct xhr requests are not captured by the interceptor and some modules out there use them, it would be very useful if I could implement the above scenario.

Thanks,

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.