node-totp
    Preparing search index...

    Interface VerifyTokenOptions

    Options that control TOTP token verification.

    interface VerifyTokenOptions {
        algorithm: TotpAlgorithm;
        digits: TotpDigits;
        now: number;
        period: number;
        window: number;
    }
    Index

    Properties

    algorithm: TotpAlgorithm

    Hash algorithm expected for the token.

    digits: TotpDigits

    Expected token length.

    now: number

    Unix time in seconds to use instead of Date.now().

    period: number

    Time step in seconds.

    window: number

    Number of time steps to check before and after the current step.