# Add a passkey

> Sign in with your fingerprint, face, or a security key instead of typing a code. Add, rename, and remove passkeys.

Source: https://docs.wpwaterfall.com/add-a-passkey

A passkey lets you sign in with your fingerprint, your face, your device PIN, or a security key. There is nothing to type, and a fake sign-in page cannot steal it. Your device keeps the secret part. WP Waterfall keeps only the public part.

## How do I add a passkey?

1. Open **Account settings**, then **Security**, then **Two-factor authentication**.
2. Choose **Add a passkey**.
3. Give it a name you will know later, such as "Work laptop". Enter your password if the account has one.
4. Choose **Continue**. Your device asks for your fingerprint, face, or PIN.

The first time you add a passkey and have no authenticator app, WP Waterfall shows ten recovery codes. Save them. See [Lose a device](https://docs.wpwaterfall.com/lose-a-device).

You can keep up to 10 passkeys. Add one on each computer and phone you use. A passkey kept by your system or password manager, such as iCloud Keychain, Google Password Manager, or 1Password, follows you to your other devices.

## How do I sign in with a passkey?

You can use a passkey two ways.

- **Instead of a code.** Enter your email and password. On the next screen, choose **Use my passkey**. A passkey is the first choice when you have one.
- **Without a password.** On the sign-in page, click the email field. Your browser lists your passkeys with your saved logins. Choose one and you are signed in, with no button and no password. Your device checks that it is you, so this counts as two steps. A passkey that does not check you (some older security keys) works only after your password. Browsers that cannot do this show nothing extra.

## What if I sign in with Google, GitHub, or my company?

A passkey works for you too, and you do not need a password first. A passkey is a complete way to confirm it is you. You do not have to create a password later.

Open **Account settings**, then **Security**, then **Two-factor authentication**, and choose **Add a passkey**. You have no password to type, so you only give the passkey a name. If you signed in less than 15 minutes ago, that is all. If it has been longer, WP Waterfall also emails a 6 digit code to your account address: choose **Email me a code**, enter it, and choose **Continue**. You stay on the page and you do not sign in again. The code works for 10 minutes and once, it is void after 5 wrong tries, and you can ask for 3 an hour. It stops a stolen older session from adding the key that opens every later confirmation, because that session cannot read your email.

A passkey that checks you also clears the "Create a password or add a passkey" notice, because it does the same job. Your sign-in with Google, GitHub, or your company still works as before, and its own checks still apply there. If your company requires two-factor authentication, a passkey that checks you counts.

## What if WP Waterfall asks me to confirm it is you and I have nothing to confirm with?

Before it shows a secret, creates an API key, or changes your sign-in, WP Waterfall opens **Confirm it is you**. If you have a password, enter it. If you have a passkey, choose **Use a passkey**. If you have neither, the same box lets you add one without leaving:

- **Add a passkey** makes the passkey right there. When it is saved, the action you asked for goes on.
- **Set a password** shows a form with the password rules. When it is saved, the action goes on.
- If you signed in more than 15 minutes ago, either step also asks for the 6 digit code that WP Waterfall emails to you. Enter it in the same box. You do not sign in again.

## How do I rename or remove a passkey?

The **Passkeys** list shows each name, when you added it, and when you last used it. Choose **Rename** to change the name. Choose **Remove** and enter your password to delete it. WP Waterfall emails you when a passkey is added or removed, and signs out your other sessions.

If your company requires two-factor authentication, you cannot remove your last method. Add an authenticator app or another passkey first.

## What if my browser cannot make a passkey?

The **Add a passkey** button is hidden in a browser that cannot make one. Use a current version of Chrome, Safari, Edge, or Firefox. You can always use an [authenticator app](https://docs.wpwaterfall.com/two-factor-authentication#how-do-i-set-up-an-authenticator-app) instead.

## API

- `GET /v1/users/me/passkeys`
- `POST /v1/users/me/passkeys/options` and `POST /v1/users/me/passkeys`
- `PATCH /v1/users/me/passkeys/{id}`
- `POST /v1/users/me/two-factor/disable` with `method` set to `passkey`
- `POST /v1/users/me/step-up/passkey/options` and `POST /v1/users/me/step-up/passkey` confirm with a passkey, the way `POST /v1/users/me/step-up` does with a password.
- `GET /v1/users/me/step-up` says whether you can confirm, and whether your session is recent enough to add a first password or passkey without a code (`recent_sign_in`).
- `POST /v1/users/me/security/first-factor-code` emails the 6 digit code that a first password or first passkey needs when `recent_sign_in` is false. Send it back as `email_code` on `POST /v1/users/me/passkeys/options` and `POST /v1/users/me/passkeys`.

Adding a passkey needs a browser, so it is not available to API keys or to assistants.

## Related

- [Two-factor authentication](https://docs.wpwaterfall.com/two-factor-authentication)
- [Lose a device](https://docs.wpwaterfall.com/lose-a-device)
