Home/For the school team/Two-step verification

"Invalid code" — Fixing time synchronization issues

Getting an "Invalid code" message when you try to log in? In most cases this is because the clock on your phone isn't quite in sync.

Why does the clock matter?

The 6-digit codes your authenticator app generates are based on the current time. A new code is calculated every 30 seconds. If your phone's clock is even 30 seconds off from the actual time, your app generates a code that no longer matches what Ziber Team expects. The result: "Invalid code."

Solution: sync the clock

On Android

Google Authenticator:

  1. Open the Google Authenticator app.
  2. Tap the menu in the top right (three dots).
  3. Go to Settings > Time correction for codes.
  4. Tap Sync now.

Microsoft Authenticator:

  1. Go to your phone settings.
  2. Open Date and time.
  3. Turn on Automatic date and time (or Use network-provided time).

On iPhone (iOS)

  1. Go to Settings > General > Date & Time.
  2. Turn on Set Automatically.

This makes your phone sync its clock automatically with a time server, after which the codes will be correct again.

Still getting an invalid code?