Skip to content

Commit

Permalink
[FEAT] #339 리프레시 토큰 또한 만료 / 통신 실패 시 빈 값 preference에 저장
Browse files Browse the repository at this point in the history
  • Loading branch information
sxunea committed Mar 14, 2024
1 parent b609e6c commit 8b882b7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class AuthInterceptor @Inject constructor(
return handleTokenExpired(chain, originalRequest, headerRequest)
} catch (t: Throwable) {
Timber.e("Exception: ${t.message}")
saveToken("", "")
}
}
}
Expand Down Expand Up @@ -123,6 +124,7 @@ class AuthInterceptor @Inject constructor(
chain: Interceptor.Chain
): Response {
Timber.e("New Refresh Token Failure: ${refreshTokenResponse.code}")
saveToken("", "")
return chain.proceed(headerRequest)
}

Expand Down

0 comments on commit 8b882b7

Please sign in to comment.