Skip to content

Commit

Permalink
chore: cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
yamilmedina committed Nov 22, 2024
1 parent 056faa6 commit 5acc6d9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import com.wire.kalium.logic.feature.session.token.AccessTokenRefresher
import com.wire.kalium.logic.functional.Either
import com.wire.kalium.logic.functional.flatMap
import com.wire.kalium.logic.functional.map
import com.wire.kalium.logic.kaliumLogger
import com.wire.kalium.logic.wrapStorageRequest
import com.wire.kalium.network.networkContainer.AuthenticatedNetworkContainer
import com.wire.kalium.network.session.SessionManager
Expand All @@ -45,7 +44,6 @@ internal class UpgradeCurrentSessionUseCaseImpl(
override suspend operator fun invoke(clientId: ClientId): Either<CoreFailure, Unit> =
wrapStorageRequest { sessionManager.session()?.refreshToken }
.flatMap { currentRefreshToken ->
kaliumLogger.i("Current refresh token: $currentRefreshToken")
accessTokenRefresher.refreshTokenAndPersistSession(currentRefreshToken, clientId.value)
}.map {
authenticatedNetworkContainer.clearCachedToken()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,6 @@ internal class AuthenticatedHttpClientProviderImpl(

private val loadToken: suspend () -> BearerTokens? = {
sessionManager.session()?.let { session ->
kaliumLogger.i("Auth tokens: are being loaded access: ${session.accessToken}")
kaliumLogger.i("Auth tokens: are being loaded refresh ${session.refreshToken}")
BearerTokens(accessToken = session.accessToken, refreshToken = session.refreshToken)
}
}
Expand Down

0 comments on commit 5acc6d9

Please sign in to comment.