Wordbook
TOTP code
A TOTP code, short for time-based one-time password, is a short number, usually six digits, that an authenticator app generates from a shared secret and the current time. It changes every thirty seconds, so a code seen once is useless soon after.
3 min read ยท Updated December 5, 2026
How TOTP works
When you set up an authenticator, the service shows a QR code. Inside it is a secret key. Your app stores that secret, and from then on both sides do the same calculation: take the secret, take the current time rounded to a thirty-second window, and run them through a standard algorithm. The result is a 6-digit number. Because both sides know the secret and the time, they arrive at the same code without talking to each other. Nothing is sent to your phone, so TOTP works offline, on a plane or in a basement with no signal.
A few practical facts follow from this:
- The phone's clock matters. If it drifts far from real time, codes stop matching. Setting the clock to update automatically fixes it.
- Each code works for a short window, often with a little tolerance either side.
- Anyone with the secret can make your codes, so the QR code at setup should never be shared or posted.
TOTP on gaming platforms
Many platforms let you use a standard authenticator app for two-step sign-in: Microsoft accounts for Xbox, PlayStation accounts, Nintendo Accounts, Epic Games, EA, Ubisoft, GOG and Rockstar among them. Steam uses its own Steam Mobile App rather than a standard TOTP app. Setup paths change with updates, so check the platform's current help page.
How GameKeyShop uses TOTP
TOTP is the whole sign-in here. Your account is a shop handle plus an authenticator app; no password and no email are stored. At sign-up you scan the QR code into any app that makes 6-digit TOTP codes, such as Google Authenticator, Microsoft Authenticator, 2FAS, Aegis, Authy, 1Password or Bitwarden. You also receive eight backup codes, shown once.
A worked example. You have three games in the crate and press checkout. The sign-in asks for your handle and the current code. You open the app, see 482 913 with a few seconds left on its timer, and wait for the next one so you have time to type it. You enter the new code, the crate becomes one order with a code like CR-7K2D-Q9XA-M4TB, and the payment window opens. If a code is rejected, the help page code not accepted lists the usual causes, starting with the phone's clock.
Common mix-ups
- TOTP is not a text message. The code is made on your phone, not sent to it.
- The six digits are not a PIN. They change constantly. You never memorise them.
- One app, many accounts. The same app can hold codes for the shop, your Microsoft account, your Nintendo Account and more, each labelled separately.
- New phone. Codes do not move by themselves. Pair the new phone from the Security page with a code from the old app; see moving to a new phone.
- Lost phone. Sign in with a backup code, then pair the new phone. See lost authenticator.
From the counter: some authenticator apps offer encrypted backups or sync across devices. That is a convenience worth considering, as long as the backup itself is protected. Either way, keep your eight shop backup codes somewhere separate from the phone, such as a password manager or a sheet of paper at home.
Related terms
Two-factor authentication is the general idea that TOTP codes often serve. A backup code is the single-use fallback when the app is not available. Steam Guard is Steam's own code system. For a full walk-through across platforms, read securing your game accounts.