getOtpCode
Otp (one time password) are used to verify mobile number or email. You can receive a numeric password with the desired number of digits from this method and send it to your user to confirm his mobile number or email.
Params
getOtpCode(options = {otpLength : 5});
- otpLength → You can enter the length of the otp you want to receive. By default, its value is 5
Returns
83465
- Number → Returns a number with the number of digits specified in the input
Usage
getOtpCode(); //83465
getOtpCode({otpLength : 7}); //4592370