j256 / two-factor-auth

Two Factor Authentication Java code implementing the Time-based One-time Password Algorithm
ISC License
319 stars 110 forks source link

code is not validating #30

Closed priyankatech2513 closed 2 years ago

priyankatech2513 commented 2 years ago

i have implemented this code in my android application qr generation and scanning is okay but i am unable to validate code generated but google authenticator app validateCurrentNumber() function always returns false. i also check code of 6 digits which always return different value from google authenticator app. please help and guide me how can validate otp. thanks in advance

j256 commented 2 years ago

Can you give some examples @priyankatech2513 ? Are you sure the clock in your device is correct? Maybe some sort of time zone issue?