lib/rotp/totp.rb in rotp-3.2.0 vs lib/rotp/totp.rb in rotp-3.3.0

- old
+ new

@@ -85,9 +85,10 @@ params = { secret: secret, period: interval == 30 ? nil : interval, issuer: issuer, digits: digits == DEFAULT_DIGITS ? nil : digits, + algorithm: digest.upcase == 'SHA1' ? nil : digest.upcase, } encode_params("otpauth://totp/#{issuer_string}#{URI.encode(name)}", params) end private