From Dev.to
SMS OTP API Error Handling Through Recipient Suppression and Bounded Evidence
TL;DR: In Node.js, SMS OTP resend API handling should make every retry an idempotent command against one challenge, place the resulting message in a transactional outbox, and classify delivery errors...
