👋 I’m using the Auth client plugin with Bearer provider, is there a way to prevent ktor for making multiple refresh token requests at once?
For context, if my app makes 2 concurrent requests and they both fail due to expired access token, ktor at the moment makes 2 token refresh requests, one of which fails as the refresh token it used was already consumed by the first token refresh call. Ideally I’d want ktor to only ever execute one token refresh and then retry both original requests
I solved it with
for now, still open to hear in case anyone has a better approach