My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

How to handle concurrent API calls using Refresh Token in redux-saga?

AD's photo
AD
·Nov 28, 2017

I have built a blog API that uses tokens (short lived say 60 mins) and refresh tokens (long lived say 1 day). How to make API calls via React-Redux app using a generic function to handle cases of multiple API calls successfully instead of aborting them?