DWS Packages
    Preparing search index...

    Interface VerifyHOTPOptions

    Options for HOTP code verification.

    interface VerifyHOTPOptions {
        algorithm?: OTPAlgorithm;
        counter: number | bigint;
        digits?: number;
        otp: string;
        secret: string | Uint8Array<ArrayBufferLike>;
        window?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    algorithm?: OTPAlgorithm

    HMAC algorithm to use (default: 'SHA-1').

    counter: number | bigint

    The counter value.

    digits?: number

    Number of digits in the generated code (1-10, default: 6).

    otp: string

    The OTP code to verify.

    secret: string | Uint8Array<ArrayBufferLike>

    The shared secret, either as a base32-encoded string or raw bytes.

    window?: number

    Number of counter values to check ahead of the given counter (default: 0).