Enum PhoneVerificationFailureType
- Namespace
- NuvTools.Security.Verification
- Assembly
- NuvTools.Security.dll
Why a code was not sent, or not accepted.
public enum PhoneVerificationFailureType
Fields
CodeIncorrect = 2The code is not the one pending for the number.
Expired = 3No code is pending for the number: it expired, it was already used, or none was sent.
InvalidNumber = 1The number is not a valid E.164 number, or the provider cannot deliver to it.
None = 0The code was sent, or accepted.
Rejected = 5The provider refused the request for a reason this contract does not name.
TooManyAttempts = 4The provider refuses more codes, or more checks, for the number for now.
The provider could not be reached or answered unexpectedly. Nothing is known about the code.
Remarks
The values tell the application which message helps the person: a new code fixes Expired, typing again fixes CodeIncorrect, waiting fixes TooManyAttempts, and only another number fixes InvalidNumber.