DWS Packages
    Preparing search index...

    Function generateHOTP

    • Generates an HMAC-Based One-Time Password (HOTP) as defined in RFC 4226.

      Parameters

      Returns Promise<string>

      The generated OTP code as a zero-padded string.

      (Exception) - If the secret is empty, digits is out of range, or HMAC computation fails.