rohit-chouhan / auth_totp

A fast and easy-to-use time-based one-time password (TOTP) authentication package for your Flutter application
https://pub.dev/packages/auth_totp
MIT License
1 stars 0 forks source link

support for 8 digits totp code #1

Open Ferry-200 opened 2 months ago

Ferry-200 commented 2 months ago

According to Key-Uri-Format#digits, the totp code can has 6 or 8 digits. But generateTOTPCode's Implementation supports 6 digits only.

Does changing the code return code.toString().padLeft(6, '0'); to return code.toString().padLeft(8, '0'); works?

mahdibagjani commented 1 week ago

Any solution?