How it works
Verification is a two-step flow:- Create a verification: Surge sends a six-digit code to the number
- Check the code: Surge validates the code the user entered
1. Send the code
2. Check the code
When the user submits the code in your UI, send it to Surge for verification:result field indicating whether the verification succeeded:
Limits
- Expiration: 10 minutes from creation. After that, the verification moves to
expiredstatus and all check attempts returnexpired. - Max attempts: 3 incorrect guesses per verification. After 3 incorrect attempts, the verification moves to
exhaustedstatus. Create a new verification and prompt the user to resend the code.