Skip to content

Commit 4423755

Browse files
authored
[skip ci]
1 parent 85e9174 commit 4423755

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
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
```
1016
cd server

0 commit comments

Comments
 (0)