tadeck / onetimepass

One-time password library for HMAC-based (HOTP) and time-based (TOTP) passwords
http://otp.readthedocs.org/
MIT License
681 stars 101 forks source link

Generate token not same as google authenticator #29

Open blurryfacex opened 4 years ago

blurryfacex commented 4 years ago

Hi,Recently been working on how to get the token from google authenticator with window or chrome extension, But now it is not working, the website is restrict need google authenticator or microsoft authenticator. Left console is the python output, but is invalid tokenRight is android emulator token code wichi is working fine. image

analyticsdept commented 3 years ago

For anyone encountering this issue in future: make sure your clocks are in sync.

Visit https://time.is from your devices / servers - if there's significant drift, you won't ever generate the same tokens.

SmartManoj commented 1 year ago
2022-11-27 21:18:40.149659 380293
2022-11-27 21:19:16.886529 513624
2022-11-27 21:19:44.003796 393547
2022-11-27 21:20:00.663223 037625

I think the time is not problem. But the code works. How it generates? OS: Manjaro XFCE 21.3.7