Open pke opened 2 years ago
Thanks for the library!
I wondered if the refreshingTokenPromise could be rewritten using .finally() instead of creating a promise to reset refreshingTokenPromise to null.
refreshingTokenPromise
.finally()
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?
Thanks for the library!
I wondered if the
refreshingTokenPromise
could be rewritten using.finally()
instead of creating a promise to resetrefreshingTokenPromise
tonull
.According to all green tests after I did rewrite it seems to work. Anything speaking against using
.finally()
? And would you accept a PR?