File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
app/src/main/java/co/orange/ddanzi/di/interceptor
feature/auth/src/main/java/co/orange/auth/login Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ class AuthInterceptor
76
76
private fun Request.Builder.newAuthBuilder () = this .addHeader(AUTHORIZATION , " $BEARER ${userRepository.getAccessToken()} " )
77
77
78
78
companion object {
79
- private const val CODE_TOKEN_EXPIRED = 403
79
+ private const val CODE_TOKEN_EXPIRED = 401
80
80
private const val TOKEN_EXPIRED_ERROR = " 토큰이 만료되었어요\n 다시 로그인 해주세요"
81
81
private const val BEARER = " Bearer"
82
82
private const val AUTHORIZATION = " Authorization"
Original file line number Diff line number Diff line change @@ -56,9 +56,7 @@ class LoginActivity : BaseActivity<ActivityLoginBinding>(featureR.layout.activit
56
56
when (state) {
57
57
is UiState .Success -> {
58
58
if (state.data != USER_ALREADY_SIGNED ) {
59
- Intent (this , PhoneActivity ::class .java).apply {
60
- startActivity(this )
61
- }
59
+ startActivity(Intent (this , PhoneActivity ::class .java))
62
60
}
63
61
finish()
64
62
}
You can’t perform that action at this time.
0 commit comments