Prerequisite: A Momentic-provisioned phone number. Request
one.
Single-number setup
If you only need OTP login from one fixed number (or your tests don’t run in parallel), fetch the latest message and pull the code out:{{ env.OTP_CODE }}.
Parallel runs against the same OTP flow
If you run the same OTP login test in parallel (e.g. multiple shards in CI), two tests can race on the same inbound code. Lease a number from your pool so each shard gets its own. Momentic releases it back to the pool when the test finishes.sms.lease() for full options (TTL,
fail-fast, optional manual release).