Skip to content

Commit

Permalink
[FIX/#123] 토큰 재발급 오류코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchbreeze committed Sep 8, 2024
1 parent 009555c commit 6f3d440
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class AuthInterceptor
private fun Request.Builder.newAuthBuilder() = this.addHeader(AUTHORIZATION, "$BEARER ${userRepository.getAccessToken()}")

companion object {
private const val CODE_TOKEN_EXPIRED = 403
private const val CODE_TOKEN_EXPIRED = 401
private const val TOKEN_EXPIRED_ERROR = "토큰이 만료되었어요\n다시 로그인 해주세요"
private const val BEARER = "Bearer"
private const val AUTHORIZATION = "Authorization"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ class LoginActivity : BaseActivity<ActivityLoginBinding>(featureR.layout.activit
when (state) {
is UiState.Success -> {
if (state.data != USER_ALREADY_SIGNED) {
Intent(this, PhoneActivity::class.java).apply {
startActivity(this)
}
startActivity(Intent(this, PhoneActivity::class.java))
}
finish()
}
Expand Down

0 comments on commit 6f3d440

Please sign in to comment.