From eb8be2f44aba492c7293a04809f39a9a134c45e0 Mon Sep 17 00:00:00 2001 From: KTH Date: Sun, 1 Sep 2024 17:01:22 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9C=A8=20::=20[#1279]=20=EC=BB=A4?= =?UTF-8?q?=EC=8A=A4=ED=85=80=20=ED=94=8C=EB=9F=AC=EA=B7=B8=EC=9D=B8=20?= =?UTF-8?q?=EB=B6=84=EA=B8=B0=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BaseDomain/Sources/DataSource/BaseRemoteDataSource.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Projects/Domains/BaseDomain/Sources/DataSource/BaseRemoteDataSource.swift b/Projects/Domains/BaseDomain/Sources/DataSource/BaseRemoteDataSource.swift index ae19b454f..07a802e5a 100644 --- a/Projects/Domains/BaseDomain/Sources/DataSource/BaseRemoteDataSource.swift +++ b/Projects/Domains/BaseDomain/Sources/DataSource/BaseRemoteDataSource.swift @@ -107,7 +107,12 @@ private extension BaseRemoteDataSource { } func reissueToken() -> Completable { + #if DEBUG || QA let provider = refreshProvider ?? MoyaProvider(plugins: [JwtPlugin(keychain: keychain), CustomLoggingPlugin()]) + #else + let provider = refreshProvider ?? MoyaProvider(plugins: [JwtPlugin(keychain: keychain)]) + #endif + if refreshProvider == nil { refreshProvider = provider } From a4f672159bc932f55c5b67db61dd3bd479b1200e Mon Sep 17 00:00:00 2001 From: "pikagreen@nate.com" Date: Sun, 1 Sep 2024 17:01:27 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=8E=A8=20::=20=EC=BD=94=EB=93=9C=20Fo?= =?UTF-8?q?rmatting=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/DataSource/BaseRemoteDataSource.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Projects/Domains/BaseDomain/Sources/DataSource/BaseRemoteDataSource.swift b/Projects/Domains/BaseDomain/Sources/DataSource/BaseRemoteDataSource.swift index 07a802e5a..ad03cb542 100644 --- a/Projects/Domains/BaseDomain/Sources/DataSource/BaseRemoteDataSource.swift +++ b/Projects/Domains/BaseDomain/Sources/DataSource/BaseRemoteDataSource.swift @@ -108,9 +108,12 @@ private extension BaseRemoteDataSource { func reissueToken() -> Completable { #if DEBUG || QA - let provider = refreshProvider ?? MoyaProvider(plugins: [JwtPlugin(keychain: keychain), CustomLoggingPlugin()]) + let provider = refreshProvider ?? MoyaProvider(plugins: [ + JwtPlugin(keychain: keychain), + CustomLoggingPlugin() + ]) #else - let provider = refreshProvider ?? MoyaProvider(plugins: [JwtPlugin(keychain: keychain)]) + let provider = refreshProvider ?? MoyaProvider(plugins: [JwtPlugin(keychain: keychain)]) #endif if refreshProvider == nil {