refresh-fetch
refresh-fetch copied to clipboard
Use of .finally for refreshingTokenPromise
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?