Skip to content

Commit

Permalink
fix : 유저 정보를 못 가져오는 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
HamBP committed Jul 25, 2024
1 parent 4ab3081 commit 5ab52bf
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import com.nexters.boolti.domain.request.LoginRequest
import com.nexters.boolti.domain.request.SignUpRequest
import com.nexters.boolti.domain.request.SignoutRequest
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.map
import javax.inject.Inject
Expand All @@ -34,6 +35,7 @@ internal class AuthRepositoryImpl @Inject constructor(
return authDataSource.login(request).onSuccess { response ->
tokenDataSource.saveTokens(response.accessToken ?: "", response.refreshToken ?: "")
deviceTokenDataSource.sendFcmToken()
getUserAndCache().first()
}.mapCatching(LoginResponse::toDomain)
}

Expand Down

0 comments on commit 5ab52bf

Please sign in to comment.