// TODO: If the usernameOrEmail and password was informed by the user on the previous screen, then we should pass only the pin, like this: fun authenticate(pin: EditText)
funauthenticate(
funauthenticate(
usernameOrEmail:String,
usernameOrEmail:String,
password:String,
password:String,
twoFactorAuthenticationCode:String
twoFactorAuthenticationCode:String
){
){
valserver=serverInteractor.get()
launchUI(strategy){
when{
valclient=factory.create(currentServer)
server==null->{
view.showLoading()
navigator.toServerScreen()
try{
}
// The token is saved via the client TokenProvider