GraphQL Refresh Token in Kotlin
Please I need some help. I am running an Interceptor to detect if the access token is expired or not. So If expired I am trying to refresh Token otherwise I send the request.
My issue that it is running the refresh token request with the token on the header and the other requests with the refresh token on the header. I did some research, they say that it is a problem of concurrency. as I am new to that I think I used the wrong way.
Please anyone can help me to fix this issue. Here is my...