Android Refresh token with Retrofit, OkHttp, Kotlin Coroutines Mutex 🔂 When multiple requests hit 401 (HTTP_UNAUTHORIZED), only single Refresh token request will be executed. After successful refresh, all pending requests will be executed concurrently. Example of encryption Jetpack Proto DataStore with Tink. Secured Proto DataStore. This example…
kotlin android-retrofit okhttp-interceptor android-mvvm-coroutine kotlin-coroutines-mvvm kotlin-coroutine-flow kotlin-coroutines-stateflow android-stateflow android-refresh-token retrofit-refresh-token android-retrofit-auth android-refresh-token-sample okhttp-refresh-token retrofit-token okhttp-token coroutines-mutex android-coroutines-flow kotlin-coroutines-mutex android-coroutines-flow-mvvm secured-datastore
- Updated
Jun 4, 2025 - Kotlin