If you are attempting to enable Two-factor Authentication (2FA) on your account or trying to log in after enabling 2FA, and the authentication code is rejected, this is most often caused by a time sync issue.

The Authentication code is time-based and if the time on your Mobile device (or Authentication app) is off by more than 60 seconds, the code you enter will be rejected.

Each two-factor app will have a unique method for ensuring this time is synced. For example when using Google Authenticator:

Go to the main menu on the Google Authenticator app

  • Tap More and then Settings.
  • Tap Time correction for codes
  • Tap Sync now

Authy on the other hand will sync automatically. 

Note: You can use any Two-Factor Authentication app, like Authy, Google Authenticator, or FreeOTP with IronVest.