You mean this interface or this method of authenticating?
If authenticating - Then you again have 2 ways. Email and SMS. For email, it is pretty simple, you generate a random 4-digit code, keep it saved in a variable and send it via Send Email smart service. Then when the user enters that code, you just validate that against the value saved in the variable.
For SMS, you have to use an external API like Twillio.
I have to make a functionality like if user click on send button then he will receive an random OTP, as similar when we register on any portal they verified via OTP which we receive on mobile number.
i just want to know can i generate random 4 digit number after every click .
For email, you generate a random 4-digit code using random function and dont forgot to convert random to int and then to text, and you can use script task smart service to pass this value in expression and then use Send Email smart service.