node-totp
    Preparing search index...

    Interface GenerateUriOptions

    Options for generating an otpauth URI and secret.

    interface GenerateUriOptions {
        account: string;
        algorithm?: TotpAlgorithm;
        byteLength?: number;
        digits?: TotpDigits;
        issuer: string;
        period?: number;
        secret?: string;
    }
    Index

    Properties

    account: string

    User identifier, typically an email address or username.

    algorithm?: TotpAlgorithm

    Hash algorithm used by the authenticator.

    'SHA1'

    byteLength?: number

    Secret length in bytes when generating a new secret. Defaults to an algorithm-appropriate size.

    digits?: TotpDigits

    Number of digits in generated tokens.

    6

    issuer: string

    Service or application name displayed by authenticator apps.

    period?: number

    Time step in seconds.

    30

    secret?: string

    Canonical unpadded Base32 secret to embed in the URI. If omitted, a new secret is generated.