# Securing your admin sign-in with passkeys and two-factor authentication

Every admin who signs in to the [admin panel](/docs/glossary/admin-panel/) with an email address also needs a second factor: a passkey, an authenticator app, or both. This guide covers when you're asked for one, how to add passkeys and authenticator apps, how to rename and remove them, why the admin panel sometimes asks you to verify again, and what to do if you lose one.

If your organization signs admins in through [single sign-on](#how-does-this-work-with-sso), your identity provider handles the second factor instead.

## Is two-factor authentication required for the admin panel?

Yes. There are no passwords. You sign in with a link emailed to you, and then verify with a passkey or a 6-digit code from an authenticator app before you can do anything in the admin panel. You can't skip it.

The first time you open a sign-in link, the admin panel asks you to set up a second factor on a screen titled **Protect your account**. Choose **Use a passkey** or **Use an authenticator app**. If your browser doesn't support passkeys, only the authenticator app option is offered.

Once you have a second factor, signing in looks like this:

- **Log in with passkey** on the sign-in page signs you in with a passkey alone, with no email link.
- Otherwise, enter your email, open the link, and then verify on the **Verify your account** screen with **Verify with passkey** or **Enter code from your authenticator app**.

After you verify, the admin panel stays signed in for up to 16 hours, then asks for your passkey or code again. Your email sign-in lasts 90 days from the last time you verified, so you only need a new email link if you go 90 days without verifying, or after you sign out. Each email link expires an hour after it's sent.

If you enter a wrong code 10 times within five minutes, you're signed out and have to sign in again.

## Which passkeys and authenticator apps work?

**Passkeys** work in any current browser that supports them, including Chrome, Safari, Firefox, and Edge. You can save the passkey to:

- your device or account, like Apple Passwords, Google Password Manager, or Windows Hello
- a password manager that stores passkeys, like 1Password or Bitwarden
- a hardware security key, like a YubiKey

The admin panel requires the passkey to confirm it's you each time, with a fingerprint, face scan, device PIN, or the security key's PIN. A passkey only works on admin.defined.net.

**Authenticator apps** are any app that generates time-based one-time passwords (TOTP), the 6-digit codes that change every 30 seconds. 1Password, Google Authenticator, Duo Mobile, and Authy all work.

By default, you can add up to five passkeys and up to five authenticator apps. Once you have the maximum of either, **Add passkey** or **Add authenticator** opens an **Account limit reached** dialog instead. Delete one you no longer use to add another, or contact support.

## Add a passkey

To add a passkey after you've signed in:

1. Open **Your account** at the bottom of the sidebar and choose **User settings**, or go to [User settings](https://admin.defined.net/settings/user).
2. Under **Sign-in and security**, click **Add passkey**.
3. The **Add passkey** dialog says "Register a passkey or hardware security key for quick, secure access to your account." Click **Register passkey**.
4. The button changes to **Waiting for device...** while your browser or operating system shows its own passkey prompt. Choose where to save the passkey, then confirm with your fingerprint, face, PIN, or security key.

When it's saved, the dialog closes and the passkey appears in the list. If you close the prompt or don't finish within two minutes, the dialog shows "The request was cancelled or timed out. Please try again."

The first-time setup works the same way: after **Use a passkey**, the **Register a passkey** screen has the same **Register passkey** button.

A new passkey is listed under the name of the app or device that stores it, like "1Password" or "YubiKey 5 NFC", when the admin panel recognizes it, and as _unnamed_ when it doesn't. [Rename it](#rename-a-passkey-or-authenticator-app) so you can tell your passkeys apart later.

## Add an authenticator app

To add an authenticator app after you've signed in:

1. In [User settings](https://admin.defined.net/settings/user), under **Sign-in and security**, click **Add authenticator**.
2. In the **Add authenticator** dialog, enter a **Name** if you like, such as "Work phone". It can be up to 50 characters.
3. Under "Scan the QR code with your authenticator app", scan the code with your app. If you can't scan it, type the code shown under "Or copy this code into your authenticator app" instead.
4. Under "Enter your verification code", enter the 6-digit code your app now shows, and click **Add**.

The entry in your app is labeled "Defined Networking" with your email address.

During first-time setup, after **Use an authenticator app**, the steps are the same except there's no name field and the code is checked as soon as you type the sixth digit. That authenticator is named "Primary". You can rename it later.

## Manage passkeys and authenticator apps

Your passkeys and authenticator apps are listed in [User settings](https://admin.defined.net/settings/user) under **Sign-in and security**. Each row shows its name, when it was added, and when it was last used, or "Never used". For passkeys, the row also shows which app or device stores it.

<figure>
  <Image
    src={signInAndSecurity}
    alt="The User settings page in the admin panel, signed in as alex@example.com. Under 'Sign-in and security', a Passkeys group lists 'Work MacBook' (Apple Passwords, last used 2h ago) and 'Backup security key' (YubiKey 5 NFC, last used 2w ago) with an 'Add passkey' link, and an Authenticator apps group lists 'Phone' (last used 3w ago) with an 'Add authenticator' link. Each row has a menu button."
    class="screenshot-shadow"
  />
</figure>

### Rename a passkey or authenticator app

Click its name, or open the menu at the end of its row and choose **Edit**. Change the **Name** (up to 50 characters) and click **Save**.

### Remove a passkey or authenticator app

1. Open the menu at the end of its row and choose **Delete**.
2. The dialog, titled **Delete passkey?** or **Delete** followed by the authenticator's name, warns that you'll no longer be able to log in with it. Click **Delete**.

You can't delete your last way to sign in. Passkeys and authenticator apps count together, so you can delete your only authenticator app as long as you have a passkey, and the other way around. If it's the last one, the dialog is titled **Cannot delete passkey** or **Cannot delete authenticator** and says "Deleting your last authenticator would prevent you from logging in." Add another one first, then delete the old one.

Adding, renaming, and deleting passkeys and authenticator apps are all recorded in the [audit log](/docs/guides/using-audit-logs/).

## Why does the admin panel ask me to verify again?

Some changes need you to have verified with your passkey or code in the last five minutes:

- adding a passkey or authenticator app
- deleting a passkey or authenticator app
- adding or removing an admin
- deleting your organization

If it's been longer than that, the admin panel takes you to the **Verify your account** screen, even though you're still signed in. Verify with **Verify with passkey** or a code from your authenticator app, and you're taken back to where you were. Then try the change again. For a passkey, that means clicking **Register passkey** a second time.

<figure>
  <Image
    src={verifyYourAccount}
    alt="The 'Verify your account' screen, signed in as alex@example.com, with a 'Verify with passkey' button, an OR divider, and six boxes under 'Enter code from your authenticator app'."
    class="screenshot-shadow"
  />
</figure>

This step means that someone who finds your browser already signed in can't add their own passkey, remove yours, or delete your organization without also having your passkey or authenticator app. Renaming doesn't need it.

## How does this work with SSO?

If your organization has [set up SSO for admins](/docs/guides/setting-up-sso/), admins who sign in with **Continue with SSO** are verified by your identity provider. The admin panel doesn't ask them for a passkey or code, and **User settings** doesn't appear in their account menu, so enforce two-factor authentication in your identity provider.

Some account settings are only available to admins who signed in with an email link and a second factor:

- the SSO configuration
- the list of admins, including adding and removing them
- renaming or deleting the organization
- billing, including [updating your payment information](/docs/guides/updating-payment-information/), adding a payment method, and cancelling your plan

On an SSO domain, the sign-in page offers **Email me a login link instead** for this. Keep at least one admin who has a passkey or authenticator app set up, so someone can still make these changes or sign in if your identity provider is unavailable.

## What if I lose my passkey or authenticator app?

If you still have another passkey or authenticator app, sign in with it, then go to [User settings](https://admin.defined.net/settings/user) and delete the one you lost. Do this right away if the device was stolen. Then add a replacement.

A passkey saved to a synced account or password manager, like Apple Passwords, Google Password Manager, or 1Password, is usually still available on your other devices signed in to the same account, so check there before you delete it.

If you've lost every passkey and authenticator app on your account, you can't sign in to the admin panel on your own. There are no backup codes. Email [support@defined.net](mailto:support@defined.net) from the address you sign in with, and we'll help you get back in.

## Recommended setup

- **Set up at least two second factors, on separate devices.** For example, a passkey on your laptop and an authenticator app on your phone, or a passkey plus a security key you keep somewhere safe. If one device is lost or broken, you can still sign in.
- **Add an authenticator app even if you mostly use passkeys.** Passkeys only work in browsers that support them, and an app gives you a way in from anywhere.
- **Name each one after the device it's on**, like "Work MacBook" or "Backup security key", so you know which to delete when a device goes missing.
- **Check "Last used" now and then** and delete any you no longer recognize or use.
- **With SSO, keep an admin who signs in by email** and has two factors set up, so account settings stay reachable.
