Open ericledonge-betonprovincial opened 1 month ago
I believe I’ve seen this behavior myself. There’s probably an off-by-one bug somewhere in Ky’s retry logic.
In your beforeRetry
hook, does retryCount
increment correctly? If you log it, what do you get?
There’s also https://github.com/sindresorhus/ky/issues/233, which is probably unrelated but worth investigating.
I don't understand why, when I have a 401 on a http request, my app is calling 2 times the refresh token http endpoint.
My http.services.ts:
My auth.services.ts: