Method: ROTP::TOTP#provisioning_uri
- Defined in:
- lib/rotp/totp.rb
#provisioning_uri(name = nil) ⇒ String
Returns the provisioning URI for the OTP This can then be encoded in a QR Code and used to provision the Google Authenticator app
56 57 58 |
# File 'lib/rotp/totp.rb', line 56 def provisioning_uri(name = nil) OTP::URI.new(self, account_name: name || @name).to_s end |