Hoppa till innehåll

Du visar förhandsversionen av dokumentationenInnehållet här är för testning och kan skilja sig från den publika dokumentationen.

Gå till den publika dokumentationen

Two-factor authentication and passkeys

Detta innehåll är inte tillgängligt på ditt språk ännu.

Two-factor authentication (2FA) adds a second step to signing in: after your password, the account asks for a six-digit code from an authenticator app. This page covers turning it on, keeping the recovery codes usable, and what to do when you cannot produce a code.

  • An account with a password. Two-factor settings live under Settings → Security, alongside your password, your recovery codes and your active sessions.
  • An authenticator app that generates TOTP codes — Google Authenticator, Authy, 1Password, Microsoft Authenticator, or any other. Text messages are not offered as a second factor.
  • Your password. Turning two-factor authentication on or off requires it, and so does generating a new set of recovery codes.
  • Somewhere to keep the recovery codes that is not the device holding your authenticator app.
  1. Start setup from the two-factor authentication settings. The server generates the secret and returns the QR code for it — the code you scan is the server’s, so what your app stores and what the server expects cannot drift apart.
  2. Scan the QR code with your authenticator app, or enter the secret manually if you cannot scan.
  3. Confirm with a code and your password. Setup only completes once you send back a code the server accepts, which proves your app and the account agree before anything is switched on.
  4. Save your recovery codes. They appear at the end of setup, once. Copy, download or print them before you finish.

Verify it worked. The settings page reports two-factor authentication as enabled, and you get a “Two-factor authentication enabled” email. From then on, a password sign-in stops halfway and asks for a code. Until that code is accepted you are not signed in — the sign-in is held at the second-factor step and your account is not accessible until it succeeds.

Recovery codes are the self-service way back in when the authenticator app is not available. They are short strings, generated for you when you enable 2FA.

  • You get four. That is enough to get out of trouble a few times, not enough to be careless with.
  • Each code works once. A code that has already been used will simply be rejected; the app does not distinguish a spent code from a mistyped one.
  • They are shown once, when they are generated. Afterwards the settings page reports only how many unused codes remain, not the codes themselves.
  • Generate a new set when you are running low. Generating requires your password.

Blunt version: store them somewhere that is not this product and not the phone in your pocket.

  • Not in Onetime Secret. This service is built to destroy what it holds. It is not storage, and a link you cannot open twice is not a backup.
  • Not only on the device that holds your authenticator app. If one lost phone takes out both factors, you have a single point of failure with extra steps.
  • A password manager on a different device, or a printed copy somewhere physically safe, are both fine. Treat a recovery code like a password: it is one step away from your account.

At the code prompt, choose Use a recovery code instead and enter one of your codes. That signs you in.

Once you are back in, fix the underlying problem in the same session rather than putting it off:

  • Set up your authenticator app again on the device you still have. Turning two-factor authentication off and setting it up again gives you a new secret and a new set of recovery codes.
  • Check how many unused recovery codes you have left, and generate a new set if the number is low.

If codes from the app are being rejected, check the clock on the device running it. TOTP codes are derived from the current time and expire quickly, so a device whose clock has drifted produces codes the server will not accept. Use the code showing right now, not one you copied a minute ago.

If you keep entering wrong codes, the authenticator step stops accepting them for your account after several failures in a row. Recovery codes are the intended escape from that state — use one rather than waiting the lock out.

There is deliberately no email-based way to switch off two-factor authentication. Your email address can already reset your password, so an email path to removing 2FA would mean anyone with your inbox had both — and 2FA would be adding nothing.

That leaves one route: contact support, from the email address on the account. Turning two-factor authentication off for an account is a manual action an operator performs after establishing that the account is yours. It is not self-service, there is no API for it, and because a human has to be satisfied first, it is not instant. Expect to answer questions about the account that only its holder could answer.

When it is done, both the authenticator secret and all remaining recovery codes are removed, and you are emailed to say so. You then sign in with your password alone, and should set two-factor authentication up again straight away.

A passkey signs you in with whatever unlocks your device — Face ID, Touch ID, Windows Hello — or with a hardware security key. Where passkeys are enabled you will see a passkey option on the sign-in page and a Passkeys section in your security settings where you can register one.

Two things worth knowing:

  • Registering a passkey does not replace your second factor. When your account has an authenticator app configured, the second-factor step asks for an app code or a recovery code — a passkey is not offered there, and it is not a substitute for keeping your recovery codes.
  • Registering a passkey asks for your password, and the browser prompt has a short window in which to touch the key or complete the biometric check. If it lapses, start again — nothing is left half-registered.

What two-factor authentication does not cover

Section titled “What two-factor authentication does not cover”
  • Signing in through an identity provider skips it. If your account also signs in via SSO, that route does not ask for a second factor: the identity provider is trusted to enforce its own. Turning on 2FA here does not add a step there, so the factors that matter for that route are the ones your provider enforces. See Single Sign-On.
  • It protects your account, not the links you have already sent. Two-factor authentication guards signing in, your dashboard and your settings. A secret link behaves the same way regardless — see What recipients see.

Disabling two-factor authentication requires your password, and sends you a notification email so the change cannot happen quietly on an account someone else has reached. If you suspect your authenticator or your codes are compromised, turning 2FA off and setting it up again is the clean restart: a new secret, a new set of recovery codes.

We’re here to help.