You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a little problem with the TOTP class. If it generates a number starting with a 0, it is not taken into account by Dart. For instance : the class generates 012345 and Dart returns 12345.
The only possible fix would be to return a String instead of an int. We could avoid a breaking change by adding a stringValue() method that returns a String padded with as many 0 as needed to match the TOTP length.
The text was updated successfully, but these errors were encountered:
Hey,
There's a little problem with the
TOTP
class. If it generates a number starting with a0
, it is not taken into account by Dart. For instance : the class generates012345
and Dart returns12345
.The only possible fix would be to return a
String
instead of anint
. We could avoid a breaking change by adding astringValue()
method that returns aString
padded with as many0
as needed to match the TOTP length.The text was updated successfully, but these errors were encountered: