1. How do I generate an OTP for call verification?
Not directly, but we can do the following:
$sys.time provides value like:
18:40:44.165
We can use the “Regex Extract” to extract the last 3 digits (milliseconds) using Regex
.([0-9]{3})
and the last digit of seconds([0-9])\.
, that is 4.165 and save it in $flow.key.otp_1 and otp_2Concatenate both to create a 4 digit OTP.
How to do it:
Operation Widget Overview(Kindly Ignore the Operand $sys.datetime in the snippet below → It’s $sys.time only.
2. Input
3. $flow.key.otp_1
4. $flow.key.otp_2
5. $flow.key.otp
0 Comments