PHPGangsta / GoogleAuthenticator

PHP class to generate and verify Google Authenticator 2-factor authentication
http://phpgangsta.de/4376
BSD 2-Clause "Simplified" License
2.26k stars 699 forks source link

Potential sync issue #7

Closed craighandley closed 8 years ago

craighandley commented 10 years ago

When a new code is generated in the Google Auth app it takes several seconds longer (4-5, have yet to do any formal benchmarking) for the PHP class to generate the same code via getCode, as if the two are slightly out of sync. This is when using a static secret.

RobThree commented 10 years ago

Make sure your device's clock and the servers clock are in sync (use NTP to keep it in sync).

PHPGangsta commented 8 years ago

I guess it was a device clock problem.