Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Same API Code is not working in Singapore #32

Closed
jgsudhakar735 opened this issue Jan 7, 2016 · 1 comment
Closed

Same API Code is not working in Singapore #32

jgsudhakar735 opened this issue Jan 7, 2016 · 1 comment

Comments

@jgsudhakar735
Copy link

Hi All,
I Have taken your code as Reference and Created the sample JAVA Web Application and using the same in my Project and the Code is working like charm in my system (India). But the same code is not working in the Singapore. I am trying a lot but not getting the reason . Can anybody please help on this.
Reference from : https://github.com/wstrange/GoogleAuth

  1. Is there any dependency with the Country name .
    Thanks in Advance..
@emcrisostomo
Copy link
Collaborator

Hi @jgsudhakar735,

If you are using this code as a "reference" I'm afraid that instead of using this library as-is you have taken the code and adapted to your need. Therefore, I can't possibly know what you've done, let alone why it is not working.

The TOTP algorithm has no knowledge of a "country", it only uses the time. Chances are you have some problems with clocks in Singapore: make sure you represent the time in the same time zone. In fact, I suggest you pick UTC and stick to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants