Closed zTrix closed 4 years ago
Thanks for the report. I'll look into this soon. Sorry for the inconvenience
Found the problem. In my attempt to make my int2bytes
function more efficient/cleaner, I used a method that involved int64 functions that dont exist in Dart2js
I reverted the function and will be releasing it with 2.2 shortly.
Ok, 2.2.0 is out, please tell me if that fixes it for you.
Just tested 2.2.0 and everything works now! Thanks very much!
Thanks first for making such great and clean OTP library, I've used this lib for a long time working pretty well, until recently, after upgrading to 2.1.0, exception occur when calling
generateTOTPCodeString(secret, timeSinceEpochInMilliseconds, algorithm: Algorithm.SHA1)
My environment config as below:
Downgrading to 2.0.3 solved this issue.
So I guess this issue may be introduced by commit like https://github.com/Daegalus/dart-otp/commit/915b04f7b1f71991916f6f7ca1b53bb280178da4