@nowarajs/totp
    Preparing search index...

    Interface TotpOptions

    Options for TOTP/HOTP generation

    interface TotpOptions {
        algorithm?: "SHA-1" | "SHA-256" | "SHA-512";
        digits?: 6 | 8;
        period?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    algorithm?: "SHA-1" | "SHA-256" | "SHA-512"

    Hash algorithm to use

    SHA-1
    
    digits?: 6 | 8

    Number of digits in the code

    6
    
    period?: number

    Time step in seconds for TOTP

    30