apollo-link-token-refresh icon indicating copy to clipboard operation
apollo-link-token-refresh copied to clipboard

Concurrent requests

Open nicoCalvo opened this issue 6 years ago • 1 comments

How you handle concurrent requests in order to avoid multiple token renewal process to be triggered?

nicoCalvo avatar Jul 12 '19 15:07 nicoCalvo

It queues requests according to the isFetching state. See: https://github.com/newsiberian/apollo-link-token-refresh/blob/b4c12027137586fd4e65442e478d662144068fdd/src/tokenRefreshLink.ts#L139

guiccbr avatar Aug 14 '19 12:08 guiccbr