For SMS OTP backend authentication, release a seller's new-order alert from committed business state, and evaluate the buyer's verification evidence when authorizing that commitment. An SMS that arrives late must not move either boundary. In a fintech marketplace, confusing these clocks can turn a harmless delivery delay into an authorization error.
Short answer: separate SMS OTP expiry, authentication freshness, notification retry lifetime, and audit retention. Enforce guessing limits and recovery-code consumption in shared durable state. Preserve the evidence needed to explain authorization, while sampling delivery diagnostics independently. The decision here is about temporal correctness: which evidence remains valid for which decision, and when it can be discarded.
An SMS code alone is not two-factor authentication. The design below assumes an authenticated buyer session established through an independent first factor.…