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

This commit is contained in:
David Perez
2025-10-07 20:31:21 +00:00
committed by GitHub
parent 9fee973563
commit 97c4cd705b
@@ -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