OTP login is a common way to confirm that a user has access to an email address. The user enters their email, gets a one-time…