-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mod] 자동 로그인, 로그인 로직 수정 #171
Conversation
} | ||
|
||
fun login() { | ||
viewModelScope.launch { | ||
authRepository.login(RequestLogin(loginEmail.value, loginPassword.value)) | ||
.onSuccess { loginResponse -> | ||
val responseHeader = loginResponse.headers() | ||
val accessToken = responseHeader[AUTHORIZATION].toString() | ||
val accessToken = responseHeader[AUTHORIZATION] | ||
val refreshToken = responseHeader[AUTHORIZATION_REFRESH] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refresh 도 해야하는지 생각을 못했다 .. 🐰 ❤️
@@ -19,26 +20,33 @@ class LogInViewModel @Inject constructor( | |||
) : ViewModel() { | |||
val loginEmail = MutableStateFlow("") | |||
val loginPassword = MutableStateFlow("") | |||
private val _loginState = MutableStateFlow<Boolean?>(null) | |||
private val _loginState = MutableStateFlow<UiState<Boolean>>(UiState.Loading) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
중복확인도 uistate 로 변경할까염
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
조하염~~
@@ -64,20 +64,16 @@ class LoginActivity : | |||
} | |||
|
|||
private fun moveToHome() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
짱이다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
형님 역시 짱이십니다
Related issue 🛠
Work Description ✏️
To Reviewers 📢