Skip to content

Commit

Permalink
[chore] 로그 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
jiwon2724 committed Aug 25, 2024
2 parents a6dfac7 + 9bc20dd commit 5a48aab
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package pokitmons.pokit

import android.content.Context
import android.util.Log
import androidx.compose.runtime.mutableStateListOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
Expand Down Expand Up @@ -67,7 +66,6 @@ class LoginViewModel @Inject constructor(

fun snsLogin(authPlatform: String, idToken: String) {
authType = authPlatform
Log.d("!! : ", authType)

viewModelScope.launch {
val loginResult = loginUseCase.snsLogin(
Expand All @@ -77,13 +75,13 @@ class LoginViewModel @Inject constructor(

when (loginResult) {
is PokitResult.Success -> {
authType = authPlatform
when (loginResult.result.isRegistered) {
true -> {
tokenUseCase.apply {
setAccessToken(loginResult.result.accessToken)
setRefreshToken(loginResult.result.refreshToken)
setAuthType(authType)
Log.d("!! : ", getAuthType().first().toString())
}
_loginState.emit(LoginState.Registered)
}
Expand Down Expand Up @@ -114,7 +112,6 @@ class LoginViewModel @Inject constructor(
)
) {
is PokitResult.Success -> {
Log.d("!!: ", authType)
tokenUseCase.setAuthType(authType)
_signUpState.emit(SignUpState.SignUp)
}
Expand Down

0 comments on commit 5a48aab

Please sign in to comment.