Time-based one-time password | Leapwork Docs

The Time-based One-time Password (TOTP) block generates a unique, secure authentication code based on a Secret Key. It is used in MFA authentication flows where a time-based one-time password is required to complete a login or verification step.

Notes:

Fully expanded, the TOTP block block shows the following properties:

Note: The screenshot on this page uses the Elegance Design, introduced in 2025.3. If you are using an earlier version, your layout may look different.

Quick-start

  1. Drag Time-based One-time Password onto the canvas.
  2. Provide the Secret (either type it directly or connect it to the Secret input connector), select Algorithm, and connect Result Code to the next block that needs the TOTP value. Optionally adjust Timeout (sec) and Code size (digits).
  3. Run the flow when it’s ready.

Building block parameters

Parameters

Resources

Topic Description
Flows FAQ Common questions about creating, running, and managing flows in Leapwork.
Flows Troubleshooting Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork.