For example, HOTP.generate({digits}) has HOTP.defaults.digits (i.e. 6) for default value.
But for HOTP.validate({digits}), we have to define digits: 6.
I suggest that the “digits” parameter of the “validate” function also use HOTP.defaults.digits for default value.
For example,
HOTP.generate({digits})
hasHOTP.defaults.digits
(i.e. 6) for default value. But forHOTP.validate({digits})
, we have to definedigits: 6
.I suggest that the “digits” parameter of the “validate” function also use
HOTP.defaults.digits
for default value.Thanks