Why 2FA Code Is Not Accepted in timeSensor LEGAL

Why is the code for my 2FA not accepted?

How Two-Factor Authentication works

With Two-Factor Authentication (2FA), you log in with two things: your password and a six-digit code from an authenticator app on your smartphone (for example, Microsoft Authenticator or Google Authenticator).

When turning on 2FA timeSensor LEGAL displays a QR code once, which you scan with the app. From then on, the app and timeSensor LEGAL share the same secret key and independently calculate the same code. No internet connection is required. The code is derived from the secret key and the current time and changes every 30 seconds.

timeSensor LEGAL only accepts a code if it matches the current time, with a tolerance of about 30 seconds. If the clock on your computer or smartphone is wrong, every code will be rejected, even if you entered it correctly.

After a correct code, timeSensor LEGAL remembers the computer for a certain number of days (your Administrator can adjust this period). On a known computer, no code is requested. Therefore, 2FA may still seem to work on another computer while it fails on this one.

Possible causes and their resolution

The computer's clock is wrong

This is the most common cause. Even a deviation of one minute is enough.

  • Windows: Open Settings → Time & Language → Date & Time, enable Set time automatically and click Sync now.
  • macOS: Open System Preferences → General → Date & Time and enable Set date and time automatically.

Then log in again with a new code.

Time Zone or daylight saving time is incorrect

The clock can show the correct time even if the Time Zone is wrong. Check if the Time Zone (UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna is set and Automatically adjust for daylight saving time is enabled. Do not manually correct the clock when switching to daylight saving or standard time; instead, correct the Time Zone setting.

The smartphone's clock is wrong

The app calculates the code using the smartphone's clock. In the smartphone's Settings for Date and Time, enable automatic time.

The code expired during entry

Each code is only valid for a short time. If the countdown in the app is about to expire, wait for the next code and enter that one.

The app is using an old entry

Every time 2FA is turned off and on again, timeSensor LEGAL generates a new QR code. The old entry in the app will no longer work. If your app shows multiple timeSensor entries, use the newest one and delete the others.

You have a new smartphone

If the entries were not transferred to the new smartphone, the app lacks the secret key. Ask your Administrator to disable 2FA for your user. Then enable it again and scan the new QR code.

If none of this helps

Contact timeSensor Support. Let us know if the code is rejected on all computers or only on one, and whether it worked before.