Refresh endpoint is polled too often
The client doesn't know whether the refresh token is still valid. It thus creates a request to the refresh endpoint, whiich fails when the refresh token is expired. The frontend then repeatedly polls this endpoint because the request could have failed due to some other failure e.g. the network connection broke down