File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
data/login/src/main/java/com/hmh/hamyeonham/login/datasource/kakao
feature/mypage/src/main/java/com/hmh/hamyeonham/mypage/viewmodel Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ class KakaoAuthCodeClient(
166166 val error = uri.getQueryParameter(Constants .ERROR ) ? : Constants .UNKNOWN_ERROR
167167 val errorDescription = uri.getQueryParameter(Constants .ERROR_DESCRIPTION )
168168 val errorCause = runCatching {
169- KakaoJson .fromJson <AuthErrorCause >(error, AuthErrorCause :: class .java )
169+ KakaoJson .decodeFromString <AuthErrorCause >(error)
170170 }.getOrDefault(AuthErrorCause .Unknown )
171171
172172 AuthError (
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ package com.hmh.hamyeonham.mypage.viewmodel
22
33import androidx.lifecycle.ViewModel
44import androidx.lifecycle.viewModelScope
5- import com.hmh.hamyeonham.core.database.manger.DatabaseManager
6- import com.hmh.hamyeonham.core.network.auth.datastore.network.DefaultUserPreference
75import com.hmh.hamyeonham.login.usecase.AuthUseCase
86import dagger.hilt.android.lifecycle.HiltViewModel
97import kotlinx.coroutines.flow.MutableSharedFlow
You can’t perform that action at this time.
0 commit comments