PM-25908: Do not use network error message from 401 (#5984)

This commit is contained in:
David Perez 2025-10-07 15:31:21 -05:00 committed by GitHub
parent 9fee973563
commit 97c4cd705b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -764,7 +764,7 @@ class AuthRepositoryImpl(
resendNewDeviceOtpRequestJson
?.let { jsonRequest ->
accountsService.resendNewDeviceOtp(body = jsonRequest).fold(
onFailure = { ResendEmailResult.Error(message = it.message, error = it) },
onFailure = { ResendEmailResult.Error(message = null, error = it) },
onSuccess = {
when (it) {
VerificationOtpResponseJson.Success -> ResendEmailResult.Success