DWS Packages
    Preparing search index...

    Function verifyTOTP

    • Verifies a Time-Based One-Time Password (TOTP) against the current or specified time.

      Checks time steps within the given window to account for clock drift.

      Parameters

      Returns Promise<boolean>

      true if the OTP matches any time step in the window, false otherwise.

      (Exception) - If any generation parameter is invalid.