I'm using beforeRetry hook to do the refresh token logic, and if the refreshToken is expired, I'll receive an error, so I should not try another time and navigate the user to the login page. But even if I return the ky.stop, the retry seems not to stop until hit the limit.
What should I do to prevent from keep retrying? Thanks in advance!
Hi community,
I'm using
beforeRetry
hook to do the refresh token logic, and if the refreshToken is expired, I'll receive an error, so I should not try another time and navigate the user to the login page. But even if I return theky.stop
, the retry seems not to stop until hit the limit.What should I do to prevent from keep retrying? Thanks in advance!