Skip to content

Commit 6f3d440

Browse files
committed
[FIX/#123] 토큰 재발급 오류코드 수정
1 parent 009555c commit 6f3d440

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/src/main/java/co/orange/ddanzi/di/interceptor/AuthInterceptor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class AuthInterceptor
7676
private fun Request.Builder.newAuthBuilder() = this.addHeader(AUTHORIZATION, "$BEARER ${userRepository.getAccessToken()}")
7777

7878
companion object {
79-
private const val CODE_TOKEN_EXPIRED = 403
79+
private const val CODE_TOKEN_EXPIRED = 401
8080
private const val TOKEN_EXPIRED_ERROR = "토큰이 만료되었어요\n다시 로그인 해주세요"
8181
private const val BEARER = "Bearer"
8282
private const val AUTHORIZATION = "Authorization"

feature/auth/src/main/java/co/orange/auth/login/LoginActivity.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ class LoginActivity : BaseActivity<ActivityLoginBinding>(featureR.layout.activit
5656
when (state) {
5757
is UiState.Success -> {
5858
if (state.data != USER_ALREADY_SIGNED) {
59-
Intent(this, PhoneActivity::class.java).apply {
60-
startActivity(this)
61-
}
59+
startActivity(Intent(this, PhoneActivity::class.java))
6260
}
6361
finish()
6462
}

0 commit comments

Comments
 (0)