when switching between accounts, with many tabs open (10 seem to be enough), they all hit the endpoint at the same time, and some get rate limited.
treating a 429 as a fatal error confuses the frontend, which ends up logging the user out of all their accounts.
this code makes the frontend retry, after waiting the appropriate amount of time.
seems to work fine in my testing.
thanks to @fEmber for noticing the problem!
By submitting this merge request, you agree to follow our Contribution Guidelines