DWS Packages
    Preparing search index...

    Function verifyHOTP

    • Verifies an HMAC-Based One-Time Password (HOTP) against a counter value.

      Checks the given counter and optionally a look-ahead window of subsequent counter values.

      Parameters

      Returns Promise<boolean>

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

      (Exception) - If any generation parameter is invalid.