Skip to content

Commit 3da2212

Browse files
improve logging for Authenticator.kt
1 parent 3b21630 commit 3da2212

File tree

1 file changed

+2
-2
lines changed
  • data/networking/src/main/java/be/appwise/networking/interceptors

1 file changed

+2
-2
lines changed

data/networking/src/main/java/be/appwise/networking/interceptors/Authenticator.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Authenticator(
4545
// Get the current AccessToken, this might be different as the previous one because of the 'synchronized' method
4646
val newToken = Networking.getAccessToken()
4747

48-
Logger.t("Authenticator").d("Synchronized, request: $request, newtoken: $newToken")
48+
Logger.t("Authenticator").d("Synchronized, request: $request, newtoken: ${newToken?.access_token}")
4949

5050
// Check if the request was previously made as an authenticated request
5151
if (response.request.header(NetworkConstants.HEADER_KEY_AUTHORIZATION) != null) {
@@ -64,7 +64,7 @@ class Authenticator(
6464
// In case this is the first time this line gets hit refresh the AccessToken
6565
val updatedToken = onRefreshToken(newToken.refresh_token ?: "")
6666

67-
Logger.t("Authenticator").d("Updated token: $updatedToken")
67+
Logger.t("Authenticator").d("Updated token: ${updatedToken?.access_token}")
6868

6969
if (updatedToken == null || NetworkingUtil.responseCount(response) >= 2) {
7070
// refresh failed , maybe you can logout user

0 commit comments

Comments
 (0)