Retry a delivery status check before retrying a send in a Node.js SMS OTP login flow, and retain the evidence that explains the decision. For a property management application serving US and EU users, polling connects phone authentication to a second operational concern: keeping invalid recipients out of subsequent communication attempts. A delivered message and a successful identity check belong in separate records.
Short answer: Keep OTP initiation, verification, expiry, and session issuance on the backend. Poll delivery status for user feedback, normalize numbers before sending, and enforce country restrictions and spending caps in the application. Record bounce and suppression decisions separately from authentication results so recovery can be explained later. Delivery alone must never authorize a payout.
For a Next.js interface backed by Node.js or FastAPI, the useful boundary is the same: the browser requests an action; the server owns its authority.…