Skip to content

Commit

Permalink
Merge pull request #168 from Team-Sopetit/feature/#163-hotfix-sharedp…
Browse files Browse the repository at this point in the history
…reference-issue

#163 리프레시 토큰 이슈
  • Loading branch information
stellar-halo authored Mar 13, 2024
2 parents 36f73bd + feb4ea1 commit 99bebdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ dependencies {

// Network
implementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
implementation("com.squareup.retrofit2:retrofit:2.9.0")
implementation("com.squareup.retrofit2:retrofit:2.5.0")
implementation("com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:1.0.0")
implementation(platform("com.squareup.okhttp3:okhttp-bom:4.10.0"))
implementation("com.squareup.okhttp3:okhttp")
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/com/sopetit/softie/di/RetrofitModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ object RetrofitModule {
)
when (response.code) {
EXPIRED_TOKEN -> {
response.close()
runBlocking {
refreshTokenRepository.postRefreshToken().onSuccess { accessToken ->
refreshTokenRepository.setAccessToken(accessToken.accessToken)
Expand Down

0 comments on commit 99bebdb

Please sign in to comment.