Class Secret

Constructors

Properties

Methods

Constructors

  • Constructs a new instance of an OTP secret

    Parameters

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

      if a string, base32 decoding will be used

    Returns Secret

Properties

buffer: Buffer

Methods

  • Dumps the secret to a string representation

    Parameters

    Returns string