daegalus / dart-otp

RFC6238 Time-Based One-Time Password / Google Authenticator Library
MIT License
100 stars 25 forks source link

Question: is their any way to verify the generated totp code? #47

Closed FaisalMohammadi closed 1 year ago

daegalus commented 1 year ago

Not directly with the library. But you can use many only TOTP generators to test. Just make sure you enable the right settings in the Dart one to match the browser one to veriy. Things like IsGoogle: true, SHA1, and adjusting the time to your timezone sine browser generators use local time, not UTC.