onfido-sdk-ui
onfido-sdk-ui copied to clipboard
User details sms number does not work without country calling code
If the sms number excludes the country calling code (as per the code below), a validation error message is shown "Check your mobile number is correct" when clinking the Send link button. Entering the number manually without the calling code works, so I don't see why this shouldn't
userDetails: { smsNumber: '07500123456' }
SKD version 5.0.0
Hi, thanks for reporting this issue. Currently, the smsNumber
option should always include the country code as in the example below.
userDetails: { smsNumber: '+447500123456' }
We appreciate your suggestion and we will evaluate changing the behaviour in the future, but for now please use the above format to make the feature work. I hope this helps.