Product News

Use Your 2FA Codes on Any Device: How a Web Authenticator Works

A browser-based authenticator works on any device with a modern browser. Here is how to use one across devices without weakening your security.

A web authenticator generates your 2FA codes in a browser tab, so it works on any device with a modern browser: a laptop, a desktop, a tablet or a phone. 2Fa Live is one. Your secrets are encrypted in each browser with your passphrase and are not sent to a server, so each browser holds its own vault and you move accounts between devices with an encrypted backup.

This post explains how that works in practice, what you gain, what you give up compared with a phone-only app, and how to use several devices without weakening your security.

How a web authenticator works

Time-based one-time passwords are calculated, not delivered. The standard behind them, RFC 6238, combines a shared secret with the current time to produce a short code. Your authenticator and the website each compute it independently and compare. Nothing needs to travel between you and the service except the code you type.

That is why a browser can do the job. It has a clock, it can run the calculation, and it can store an encrypted copy of your secrets. In 2Fa Live the calculation happens in your browser, and the page has no need to send your secrets anywhere.

What you gain

Any device, no install

If you have a browser you have an authenticator. That helps when:

  • You are working on a computer and do not want to pick up your phone for every sign-in.
  • A phone is broken or being repaired and you need codes in the meantime.
  • You use a device where installing apps is restricted.
  • You like to try an authenticator before committing to one.

Easier typing

Reading a code from a phone and typing it on a computer is a small, constant friction. Having the code on the same screen as the sign-in form is faster, and a large "show code" view makes it easy to read.

The same standards

A web authenticator follows the same open standards as a phone app: TOTP (RFC 6238) and HOTP (RFC 4226), with the otpauth setup format. An account you set up by scanning a service's QR code works the same way regardless of which authenticator reads it.

What you give up

Honesty about trade-offs helps you choose well.

  • No automatic sync. Cloud authenticators keep your secrets on their servers so they can sync across devices. 2Fa Live does not, by design, because that is what keeps secrets off our servers. Moving accounts is a deliberate step using an encrypted backup.
  • The browser is the vault. If you clear site data in that browser, the stored vault goes with it. Keep a backup.
  • A shared computer is risky. A browser on a computer others can use is a poor place for secrets.
  • A phone has built-in protections. Locked phones with biometrics are a hard target. A laptop with a weak login is not. Choose where you open your vault accordingly.

There is also a second-factor argument. If you use the same computer for the password and for the codes, a compromise of that one computer exposes both. For your most valuable accounts, keeping the second factor on a separate device is stronger, and a hardware security key or passkey stronger still.

Using more than one device

If you want the same accounts in two places:

  1. On the first device, export an encrypted backup from 2Fa Live.
  2. Move the file to the second device by a channel you trust, such as an encrypted drive or an encrypted cloud folder.
  3. On the second device, open 2Fa Live, choose a passphrase for that browser's vault, and restore the backup. The file is checked for a valid structure before import.
  4. Verify one code against a real sign-in before you rely on it.
  5. Delete the backup file from places it no longer needs to be, or store it as your safe copy, with the passphrase kept separately.

Do this only on devices you control. Each copy of your secrets is another thing to protect. More on handling backups safely in how to back up 2FA codes securely, and on moving to a new phone in how to move 2FA codes to a new phone.

Practical habits for multi-device use

  • Use a different passphrase per vault only if you can manage them. A password manager makes this easy. Otherwise one strong passphrase is better than several weak ones.
  • Let the vault lock. It locks when idle or when the tab is hidden. Do not defeat that by leaving the page open on a shared screen.
  • Keep the browser updated and run few extensions on the profile where you open your vault.
  • Know your recovery path. Keep each service's recovery codes, because a lost passphrase cannot be reset by us.
  • Do not use public computers.

The Android app

2Fa Live also has an Android app listed on Google Play. A browser version and a phone app each have their own storage, so the same rule applies: move accounts deliberately, with an encrypted backup, rather than expecting them to sync.

Try it

Open the TOTP generator or the 2FA code generator in any browser. To see how your data is handled, read our privacy-first design and the is it safe page.

Key takeaways

  • A web authenticator calculates codes in the browser, so it works on any device with a modern browser.
  • There is no automatic sync; move accounts with an encrypted backup.
  • Use only devices you control, and let the vault lock.
  • For your most valuable accounts, consider a separate device or a passkey or security key.

Tags: web authenticator, cross-platform, browser, multiple devices, pwa

OzoneApps team

The OzoneApps team builds and maintains 2Fa Live.

Frequently asked questions

Can I use 2Fa Live on my computer as well as my phone?

Yes. It runs in any modern browser on desktop, laptop, tablet or phone. Each browser keeps its own encrypted vault, so you move accounts between them with an encrypted backup.

Do my accounts sync automatically between devices?

No. Secrets are stored encrypted in each browser and are not sent to a server, so there is no automatic sync. To use the same accounts on a second device, restore an encrypted backup there.

Does a web authenticator work offline?

Codes are computed in your browser from the secret and the clock, so generating them does not need a server. You need to have loaded the page first; the optional installable web-app mode is intended to make offline use easier.

Is it safe to use a web authenticator on a shared or public computer?

Avoid it. Anything on a shared computer, including malware or other users, can reach what is in the browser. Use your own device, and lock the vault when you step away.