File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1- # Refresh Token Sample
1+ # Android Refresh Token Sample : repeat_one :
22
3- Android Refresh token with Retrofit and OkHttp
4-
5- - When multiple requests hit ** 404** (_ HTTP_UNAUTHORIZED_ ), only single ` Refresh token request ` will be executed.
3+ - Android Refresh token with Retrofit, OkHttp and Coroutines Mutex.
4+ - When multiple requests hit ** 401** (_ HTTP_UNAUTHORIZED_ ), only single ` Refresh token request ` will be executed.
65- After successful refresh, all pending requests will be executed concurrently.
76
7+ ## Features
8+
9+ - ✅ Refresh token only once for multiple requests
10+ - ✅ Log out user if refreshToken failed
11+ - ✅ Log out if user gets an error after first refreshing
12+ - ✅ Queue all requests while token is being refreshed
13+
814# Run local server
915```
1016cd server
You can’t perform that action at this time.
0 commit comments