DWS Packages
    Preparing search index...

    Interface GenerateTOTPOptions

    Options for TOTP code generation.

    interface GenerateTOTPOptions {
        algorithm?: OTPAlgorithm;
        digits?: number;
        period?: number;
        secret: string | Uint8Array<ArrayBufferLike>;
        time?: 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).

    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).