Skip to main content

Generate OTP

Generates a Time-based One-Time Password (TOTP) using a secret key

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Options

  • Secret Key - The secret key credential used to generate the OTP. This should be a valid TOTP secret key.

Output

  • OTP - The generated Time-based One-Time Password.

The node uses the provided secret key to generate a TOTP code based on the current time. The generated OTP is a 6-digit code that changes every 30 seconds by default, following the RFC 6238 standard for TOTP.

Note: The secret key should be stored securely as a credential. The generated OTP will be valid for a short time window (typically 30 seconds) and should be used immediately.