yeojz / otplib

:key: One Time Password (OTP) / 2FA for Node.js and Browser - Supports HOTP, TOTP and Google Authenticator
https://otplib.yeojz.dev
MIT License
1.97k stars 132 forks source link

Token not matched with the Google Authenticator app #1

Closed imprabhu closed 10 years ago

imprabhu commented 10 years ago

I have gone through your otplib it was really useful, thanks for such an amazing tutorials.

i'm getting the qr-code successfully. but if i run the code it generating the TOKEN for every minute That's fine, But if i scan the code from the Google Authenticator App it generating different number. Actually So both the code are not same.

Thanks in advance.....

I want to know how to compare the Mobile App Token with my node js code. Please give any suggestion.

yeojz commented 10 years ago

hi @imprabhu

Try running the generator.js in examples folder and scan the barcode there, and see if it's showing the same on screen and in the authenticator.

Some possible problems:

yeojz commented 10 years ago

Closing due to lack of response.