Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with TOTP #28

Closed
Skyost opened this issue Jul 9, 2024 · 0 comments
Closed

Problem with TOTP #28

Skyost opened this issue Jul 9, 2024 · 0 comments

Comments

@Skyost
Copy link

Skyost commented Jul 9, 2024

Hey,

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants