Class: MultiFactorAuth::TOTP

Inherits:
Object
  • Object
show all
Extended by:
Forwardable, Methods
Defined in:
lib/multi_factor_auth/totp.rb

Instance Method Summary collapse

Methods included from Methods

extended, generate_qr_code, generate_secret, random_base32

Constructor Details

#initialize(base32, options = {}) ⇒ TOTP

Returns a new instance of TOTP.



13
14
15
# File 'lib/multi_factor_auth/totp.rb', line 13

def initialize base32, options = {}
  @instance = ROTP::TOTP.new base32, options
end