class ROTP::HOTP
def verify(otp, counter, retries: 0)
-
retries
(Integer
) -- number of counters to incrementally retry -
counter
(Integer
) -- the counter of the OTP -
otp
(String/Integer
) -- the OTP to check against
def verify(otp, counter, retries: 0) counters = (counter..counter + retries).to_a counters.find do |c| super(otp, at(c)) end end