Skip to content

[Due for payment 2025-04-18] [Due for payment 2025-04-17] [$250] Update logic with resetSMSDeliveryFailure after updating the backoff block in the BE #58933

Description

@carlosmiceli

We've recently updated the backend logic for handling SMS delivery failures to use progressive backoff durations instead of a fixed 24-hour block. Along with this change, the resetSMSDeliveryFailureStatus API response now always includes a hasSMSDeliveryFailure boolean to indicate whether the user is still blocked from receiving SMS messages.

The current frontend logic in SMSDeliveryFailurePage checksaccount?.smsDeliveryFailureStatus as a truthy object and also depends on a field called isReset. The resetSMSDeliveryFailureStatus response does not include an isReset field, so not sure where it's coming from. We need to rely solely on hasSMSDeliveryFailure to block the user from signing in or not. If it resets successfully, make sure to not automatically trigger SMS sending upon reset success. The user should explicitly click to send the code again with smsDeliveryFailurePage.validationSuccess

Successful reset (user is no longer blocked):

{
  "hasSMSDeliveryFailure": false
}

Failed reset (user still blocked):

{
  "hasSMSDeliveryFailure": true,
  "message": {
    "days": 1,
    "hours": 2,
    "minutes": 30
  }
}
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021903286530651681051
  • Upwork Job ID: 1903286530651681051
  • Last Price Increase: 2025-03-22
  • Automatic offers:
    • suneox | Reviewer | 106654064
Issue OwnerCurrent Issue Owner: @alexpensify

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2ExternalAdded to denote the issue can be worked on by a contributorImprovementItem broken or needs improvement.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions