DWS Packages
    Preparing search index...

    Interface VerifyTOTPOptions

    Options for TOTP code verification.

    interface VerifyTOTPOptions {
        algorithm?: OTPAlgorithm;
        digits?: number;
        otp: string;
        period?: number;
        secret: string | Uint8Array<ArrayBufferLike>;
        time?: number;
        window?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    algorithm?: OTPAlgorithm

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

    digits?: number

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

    otp: string

    The OTP code to verify.

    period?: number

    Time step duration in seconds (default: 30).

    secret: string | Uint8Array<ArrayBufferLike>

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

    time?: number

    Unix timestamp in seconds to generate the code for (default: current time).

    window?: number

    Number of time steps to check before and after the current step (default: 1).