3 ms·
> check the time / date / timezone on the device that is generating the codes. Sounds like that'd be on the FB infrastructure side though?
by justinclift 6y ago
> check the time / date / timezone on the device that is generating the codes.
Sounds like that'd be on the FB infrastructure side though?
- remus 6y agoThe clocks on both devices (i.e. fb's server and your phone) need to be fairly closely synchronised. TOTP effectively encrypts a timestamp using a shared secret then decrypts it on the other side and checks you're within some bound. If either clock is out it won't work.
- ncallaway 6y agoTOTP generates the codes on both the client and server sides. The user enters the client generated code and the server validates it. So if the time on the client device is wrong (perhaps it was manually set and not updated for daylight savings), then the server will disagree with what the code should be.