Nexus, what you are seeing Look up the thing on your screen and find out what it usually is

StartI cannot get in

Chapter 3 of 6 / I cannot get in

The second factor code is rejected

The code is right there on the screen in front of you and the site says no. There is one cause that accounts for most of these and it has nothing to do with the account.

What it usually turns out to be

CauseHow oftenWhat settles it
Clock drift on your machine or your phoneVery commonSync the time. Codes are generated from it
The code expiring while the page loadedCommonWait for a fresh one and submit immediately
Typing it after the window rolled overCommonSame fix
A rate limit from earlier attemptsOccasionalWait an hour
A copied page collecting codesUncommon and urgentCheck the address. See below

The clock, in more detail

A time based code is a function of a shared secret and the current time in thirty second slices. If your device thinks it is three minutes later than the server does, every code you produce is for a slice that has already passed and every one is rejected. Nothing about that is visible from the login screen, and the codes look completely normal while it is happening.

The one rule with no exception

Never send a code to anybody, on any channel, for any reason. There is no verification process that involves reading one out, and a code handed over is used within seconds while it is still valid. If you have already done that, go to the page for it now rather than finishing this one.

If it stays rejected

  1. Sync the clock and try once with a fresh code.
  2. Rebuild the circuit, because a slow page can eat the whole window.
  3. Stop after three attempts and wait an hour.
  4. Then use the recovery material you saved at setup. This is what it was for.

If you never saved that material, this is the point where it becomes the problem rather than an oversight. Recovery without it is limited by design, because the alternative would be a way for anybody to take over an account by claiming to have lost a phone.

Checking the clock properly

  1. Compare the device generating codes against any reliable clock. A phone showing the right minute can still be seconds out in a way that matters.
  2. Turn automatic time sync off and on rather than trusting that it is working. It fails quietly after a machine has been asleep.
  3. Do this on the device with the codes, which is often not the device you are browsing on.
  4. Then try once. If a fresh code fails on a synced clock, the clock was not the problem and the rest of the page applies.

Everything on this site