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 app shows how you can encrypt your data when using Proto DataStore from Jetpack.
MIT License
Refresh token request
will be executed.Liked some of my work? Buy me a coffee (or more likely a beer)
cd server
npm i
npm run start
baseUrl
(e.g. http://YOUR_ID_ADDRESS:3000/
) at app/src/main/java/com/hoc081098/refreshtokensample/data/DataModule.kt
expiresIn
(default value is 1 minute) at server/routes/index.js
.Star this repository and follow me for next creations! Thanks for your support 💗💗.