@nowarajs/totp
    Preparing search index...

    Function hotp

    • HMAC-based One-Time Password (HOTP) implementation

      Parameters

      • secret: Uint8Array

        Secret key as bytes

      • counter: number | bigint

        Counter value

      • opts: TotpOptions = {}

        HOTP options

      Returns Promise<string>

      Promise resolving to the HOTP code