@gibme/mfa
    Preparing search index...

    Class Secret

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Constructs a new instance of an OTP secret

      Parameters

      • configOrSeed: string | Partial<Options> = {}

        if a string, base32 decoding will be used

      Returns Secret

    Properties

    buffer: Buffer

    Methods

    • Dumps the secret to a string representation

      Parameters

      • encoding: BufferEncoding | "base32" = 'base32'

      Returns string