refresh-fetch icon indicating copy to clipboard operation
refresh-fetch copied to clipboard

Use of .finally for refreshingTokenPromise

Open pke opened this issue 2 years ago • 0 comments

Thanks for the library!

I wondered if the refreshingTokenPromise could be rewritten using .finally() instead of creating a promise to reset refreshingTokenPromise to null.

According to all green tests after I did rewrite it seems to work. Anything speaking against using .finally()? And would you accept a PR?

pke avatar May 06 '22 02:05 pke