Skip to content

Commit

Permalink
fix: update tango actions to use new AccountTokens
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorhugods committed Oct 17, 2023
1 parent 959564e commit f0b79b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tango-tests/src/integrationTest/kotlin/action/LoginActions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package action

import com.wire.kalium.logic.CoreLogic
import com.wire.kalium.logic.feature.auth.AddAuthenticatedUserUseCase
import com.wire.kalium.logic.feature.auth.AuthTokens
import com.wire.kalium.logic.feature.auth.AccountTokens
import com.wire.kalium.logic.feature.auth.AuthenticationResult
import com.wire.kalium.logic.feature.auth.AuthenticationScope
import com.wire.kalium.network.api.base.model.SelfUserDTO
Expand All @@ -37,7 +37,7 @@ object LoginActions {
password: String,
coreLogic: CoreLogic,
authScope: AuthenticationScope,
): AuthTokens {
): AccountTokens {
val loginResult = authScope.login(email, password, true)
if (loginResult !is AuthenticationResult.Success) {
error("User creds didn't work ($email, $password)")
Expand Down

0 comments on commit f0b79b2

Please sign in to comment.