---
title: Identities and passkeys
description: Add or remove a way to sign in to your account, manage passkeys, and understand security notices.
slug: /guides/identities-and-passkeys
order: 2
visibility: public
redirects_from: []
---

# Identities and passkeys

Prompt:

> Add my GitHub sign-in to the same account.

Also works:

- "Add another email address to this account."
- "Which passkeys work on this site?"
- "I lost the phone that held my passkey. Remove it."

An identity is one way to sign in to your account, such as Google, GitHub, or a code sent to your email. A passkey lets you sign in without waiting for that emailed code.

To add another sign-in method, your AI assistant calls `link_identity`. Finish linking it in your browser within ten minutes ([step 1](#1-link-a-second-sign-in)). After you sign in by emailed code, the site may offer to add a passkey. You can also manage passkeys at `https://dev.turnzero.ai/auth/passkeys` ([step 2](#2-register-and-remove-passkeys)). You add and remove passkeys yourself in the browser.

You remove a sign-in method yourself on Account & security ([step 4](#4-remove-a-sign-in-method)). Your AI assistant cannot remove it.

## What your AI does

- Calls `read_account` first, to list your account's identities and how many passkeys it has.
- To add a provider or another email address, calls `link_identity` and gives you the `link_url` it returns. Once you say the page confirmed the addition, it calls `read_account` to check that the new identity is listed.
- For a passkey, gives you the controls' address, `https://dev.turnzero.ai/auth/passkeys`. You add and remove passkeys in your browser; the tool has no action that does it.
- To remove a sign-in method, directs you to Account & security, `https://dev.turnzero.ai/dashboard/account`. You review and confirm the removal there.
- For a passkey on an account that signs in only with Google or GitHub, checks whether `read_account` lists an identity with provider `email`. If there is none, it asks you to check the verified email address beside that provider under **Sign-in & security** in [Account & security](https://turnzero.ai/dashboard/account). Use that address to sign in by emailed code once at `https://dev.turnzero.ai/sign-in`.
- When adding another sign-in method, asks you to open the `link_url` in a browser within ten minutes. You sign in with the other provider, or enter an email address and its code yourself. The tool enters neither the address nor the code. It writes nothing into your project. It changes nothing on your account unless you ask.

## What you need

- A web browser. To add a sign-in method, you also need an account with that provider or access to the mailbox you want to add.
- For a passkey, you need an account that signs in by emailed code and a device or password manager that can store a passkey. If your account signs in only with Google or GitHub, check that provider’s verified email address in **Account & security** and use it to sign in by code once.

## Before your AI starts

**For your AI assistant.** Check the following before starting.

- A connected, signed-in AI assistant ([Connect your AI assistant](https://turnzero.ai/cloud/getting-started/connect-your-tool/)).

## Steps

### 1. Link a second sign-in

Call `read_account` to see your sign-in methods in `identities`. Each entry gives the provider and the ID it uses for you in `subject`. For sign-in by emailed code, `subject` is your email address.

Call `link_identity` with no arguments. It returns `link_url`, valid for ten minutes, and `expires_in: 600`:

```json
{
  "contract_version": 1,
  "reference": "0a1b2c3d4e",
  "link_url": "https://dev.turnzero.ai/link/<one-time ticket>",
  "expires_in": 600
}
```

Open the link in a browser signed in to the account you are adding to. If your AI assistant gives you the link, keep it in your private conversation and leave it out of shared chats and reports. You must have signed in within the last eight hours. If you signed in longer ago, sign in again with a method already linked to that account.

On **Add a sign-in method**, choose either route:

- To add an email address, enter an address whose mailbox you can read and choose **Send code**. In the same browser, enter the six-digit code from the email and choose **Add email address**.
- To add a provider, choose its button below the email form and sign in with that provider.

The page confirms the addition. An added email address has provider `email` and the address as its subject. This adds a sign-in method to the same account without creating an account or starting another browser session. The link works once, for ten minutes.

If the provider returns a sign-in method you already hold, the page says "Already connected": nothing was added and no notice is sent. While the original link's ten minutes last, "Back to sign-in options" returns to that link so you can choose the provider again and select another account.

Adding a new address sends a security notice to the account’s verified addresses, up to five, starting with those held before the addition and then the new address. Adding a provider through the link sends the same notice, even if the account already holds its verified address. Adding emailed-code sign-in at an address the account already holds sends no notice.

The platform never links two accounts because their email addresses match. A provider identity that belongs to another account is refused with `identity_already_bound`. An email address held by another account is refused only after you enter its code: the page says the address is already in use and nothing was added. It shows no refusal name. Use another address; the same link works for the time it has left.

If the page says the address is reserved for testing, use another address. If it says mail cannot reach the domain, check the address for a typo and enter it again. Neither refusal sends a code.

Say you sign in with Google or GitHub for the first time, and another account already uses that address. The page offers to link this sign-in to that account instead. It also offers to send a code to that address.

#### The emailed code

On the ordinary sign-in page, signing in by emailed code at an address your account already uses through Google or GitHub adds the code as a sign-in method. It does not create a second account. `read_account` then lists an identity with provider `email` and the address as its subject.

A code works for ten minutes and allows five tries. The sixth entry is refused with `signin_code_invalid` and ends the code, even if you enter the right digits. One address gets at most five codes an hour. Ten wrong entries for one address within an hour also block its next code. Past either limit, ordinary sign-in refuses a new code with `signin_code_rate_limited` until the hour passes.

Through add links, one account may request five codes an hour; requesting a new code counts too. The add link expires ten minutes after it was issued. Each replacement code has a separate ten-minute timer. The address’s five-code limit also applies. Past either sending limit, the add page says too many codes were requested and to try again later. It shows no refusal name or wait time. A wrong, expired or replaced code still shows `signin_code_invalid`. [Connect your AI assistant](https://turnzero.ai/cloud/getting-started/connect-your-tool/) shows the sign-in itself.

After a permanent delivery failure or a spam complaint, the email provider stops sending to that address, so no sign-in code arrives. This applies to your account's codes and to codes sent to your application's users. Email [Turn Zero support](mailto:support@turnzero.ai) to ask for the block to be lifted for you or one of your users.

### 2. Register and remove passkeys

A saved passkey signs you in without an emailed code. Set up email-code sign-in on this account before adding a passkey. If passkeys are available on this site and none of yours works here, you may see the offer after you sign in by emailed code. You see no offer when you sign in with Google or GitHub. An account that uses only those methods never gets the offer.

To add a passkey to such an account, open [Account & security](https://turnzero.ai/dashboard/account) and check the verified email address beside Google or GitHub under **Sign-in & security**. At `https://dev.turnzero.ai/sign-in`, sign in by code with that address once. You do not need to sign out first. This adds a way to sign in by code to the same account, as step 1 describes. The site may offer a passkey if passkeys are available here and none of yours works here. If no offer appears and the site offers passkeys, open **Manage** in the **Passkeys** row.

On the ordinary sign-in page, a code for an address held by another account signs you in to that account. If no account holds the address, the page can ask you to confirm a new account. To add another address to this account, use the link in step 1. **Add a passkey** stands above the passkey list. If your account has no emailed-code sign-in, instructions for adding one appear in its place.

If you decline the offer, it comes back after thirty days. The passkey controls let you add one at any time. There is one exception to the offer. When you sign in to approve a waiting request, the sign-in goes straight to that request, and the offer waits for your next sign-in by code. A passkey works only on the platform's own site, so it cannot be used on a look-alike site.

The offer stays open for ten minutes. The offer depends on a cookie in your browser, and signing that browser out clears it. The platform then offers the passkey again at your next sign-in by code.

When you click or tab into the email field on the sign-in page, the page offers your saved passkey. After the email form's submit button, choose **Sign in with a passkey** to use a passkey on a security key or another device.

In Settings, open **Account & security** and choose **Manage** in the **Passkeys** row. If you opened Settings from a dashboard page, the controls open in Settings on that page. If you opened Settings from a public page, **Manage** takes you to the controls in Settings on the dashboard home.

The address `https://dev.turnzero.ai/auth/passkeys` still works. With scripts enabled, it opens that view over the dashboard home. Without scripts, it shows a whole page with a link back to Account & security.

Signing out leaves your passkeys registered. To remove one, confirm with any passkey registered to your account. If your sign-in is older than eight hours, follow **Sign in again**; the browser returns to the controls afterwards.

If the passkey you want to remove syncs through a password manager, check whether you can still use it on another device. If you no longer have that passkey on any device, open **No longer have this passkey?** beside it and choose **Remove it without the passkey**. A confirmation that does not complete also opens that option. You can use the option without trying to confirm first. If you last signed in more than eight hours ago, sign in again using any method on your account before you remove the passkey.

You can no longer use the removed passkey to sign in, even from another device that has a copy. The change takes effect right away. Browser sessions and AI assistant connections already open stay open. If someone else may have access, including through a browser still signed in on a lost device, use **Sign out everywhere** on Account & security. You can undo the removal for three days, as described below.

The controls list each passkey by name. Beside it are the date it was added and when it last signed you in, in your own time zone. A new passkey is named after its password manager, such as Google Password Manager or iCloud Keychain. Otherwise it is named after the browser and system that added it, such as Chrome on Windows. **Rename** gives it your own name, up to 64 characters. **← Account & security** returns to that Settings section.

Passkeys registered for another site appear under **Passkeys that no longer work here**. They cannot sign you in here. You can remove one, but you cannot undo its removal. Other sign-in methods remain on Account & security.

Under your own signed-in session, `read_account` also returns `passkeys`, with two counts. `held` is the number of your passkeys that work on this site. Removing one of those passkeys lowers `held` at once, even while you can undo the removal. `stranded` is the number of saved passkeys that do not work on this site. `passkeys` is `null` where passkeys are not offered.

For example, `read_account` could return the following for an account that added emailed-code sign-in to Google and registered one passkey. The values are invented, and other response members are left out.

```json
{
  "contract_version": 1,
  "reference": "5f6a7b8c9d",
  "account": {
    "id": "<your account id>",
    "created_at": "2026-03-04T15:20:11.000Z",
    "standing": "active",
    "identities": [
      { "provider": "google", "subject": "<the ID Google uses for you>" },
      { "provider": "email", "subject": "you@example.com" }
    ],
    "synthetic": false,
    "unbilled": false,
    "passkeys": { "held": 1, "stranded": 0 }
  }
}
```

**Recent changes** lists changes still within their three-day window that you haven’t undone. **Undo** appears beside the newest change you can undo to remove or restore a passkey. After you use it, look for it beside the next change you can undo. If you last signed in more than eight hours ago, sign in again before choosing **Undo**. Undoing an addition removes the passkey. Undoing a removal restores it.

A successful Undo ends your other browser sessions, AI assistant connections, and product tokens issued at sign-in. This browser stays signed in. Tokens you made with `mint_token` keep working. See [What ends a connection](https://turnzero.ai/cloud/concepts/sign-in-sessions-and-tokens/#what-ends-a-connection).

If **Undo** returns `internal` and asks you to sign in again, sign in and run **Sign out everywhere**. The passkey change was undone. Signing out everywhere ends any sign-in token that Undo could not end. The email notice has no link. To undo, sign in and open the passkey controls.

If Undo returns `passkey_change_closed` or `passkey_change_unknown`, reload the controls and check which passkeys are still listed. You can restore a removed passkey only while your account still has a sign-in by emailed code.

After you sign in with a passkey, the sign-in page tells your browser's passkey provider which of your passkeys still work. For this browser-provider signal alone, a passkey whose removal can still be undone stays in the list until its three days end. It no longer counts in `read_account`.

If you choose a passkey the platform does not have and cannot restore, the page tells the provider it is unknown. A provider that supports these signals can then hide or delete it. An application's own sign-in page does the same for its users. The sign-in never waits for the provider, and its result is the same either way.

### 3. Passkey notices

Adding or removing a passkey sends an email notice from `donotreply@turnzero.ai`. It goes to the addresses your identities have verified, at most five, the oldest first. One passkey sends no notice: the one you add at the offer right after the sign-in that created your account.

If an account has no emailed-code sign-in, the platform removes its passkey, at the latest the next time that passkey is used. It sends the same notice for that removal and records it the same way.

The notice says what changed and when. If you made the change, you need to do nothing. If you did not make the change or are unsure about the notice, open Turn Zero directly, sign in and review your passkeys. The notice has no link. The platform limits how many notices it sends, as [Manage end users](https://turnzero.ai/cloud/guides/manage-end-users/) states for end users. The platform records the change in your account's event history whether or not it sends a notice.

### 4. Remove a sign-in method

Before removing a sign-in, make sure a method you control still signs you in. After a successful removal, every browser session and connected AI assistant is signed out, including the browser you use to remove it. Your passkeys and tokens minted with `mint_token` remain. Review those separately if you suspect someone else has access.

Open [Account & security](https://turnzero.ai/dashboard/account) and find Sign-in & security. Each row names the provider and its verified email address, or says it has no verified address. Choose Remove beside the sign-in you want to remove.

A row offers Remove only while your account has more than one sign-in method. An email-code row offers none if a provider row carries the same address. Signing in by code at that address would add it again.

Check the provider and address in the confirmation. If that provider's address also has an email-code sign-in, the confirmation offers to remove both. Review that choice: removing the provider alone leaves sign-in by emailed code at that address available.

The confirmation shows any change to your account email. Choose Remove sign-in, or Remove both sign-ins if you chose both. Cancel closes the confirmation without removing either.

The result lists the sign-ins removed and those remaining. If your account email changed, it shows the new one. Follow its sign-in link and use a remaining method you control. A security notice goes to at most five verified addresses: the removed sign-in's verified address first, if present, then the account's others, oldest first.

If the page cannot confirm whether removal happened, sign in again and check the sign-in methods. Being signed out does not tell you whether the method was removed. If the result confirms removal and asks you to use **Sign out everywhere**, do that after signing in.

#### The page refuses removal

Follow the page's explanation:

- Keep at least one sign-in with a verified address. Link another sign-in before removing the last one.
- Keep an email-code sign-in while your account has passkeys. To remove the last email-code sign-in, remove the passkeys first.
- If a sign-in was added less than three days ago, older sign-ins stay for three days after the newest addition. Wait until that period ends.
- Sign in again if your browser sign-in is more than eight hours old, then return to Account & security.
- A sign-in that provides administrator access cannot be removed on this page.
- If the page refuses because security notices are unavailable, nothing is removed. Try again later.

An AI assistant or API token cannot remove a sign-in method. Use this page in a signed-in browser.

## Expected result

`link_identity` returns `link_url` and `expires_in: 600`. After you finish the link in a browser, `read_account` lists the new identity.

Adding or removing a passkey updates the counts under `passkeys` in `read_account`. See [Passkey notices](#3-passkey-notices) for when the platform emails you. **Account & security**, `/dashboard/account`, shows information about your passkeys and lists your other sign-in methods under **Sign-in & security**. Choose **Manage** in the **Passkeys** row to open the passkey controls.

## Refusals

See the [refusals reference](https://turnzero.ai/cloud/reference/refusals/) for other platform errors.

From `identity_already_bound` down, the rows are named refusals that the linking page, the sign-in page, and the passkey page show in your browser. The add page’s address-in-use and too-many-codes explanations show no refusal name; [step 1](#1-link-a-second-sign-in) gives their remedies. An authenticator, named in some rows, is the device or password manager that holds a passkey.

| Refusal | Status | Cause | Remedy |
| --- | --- | --- | --- |
| `app_credential_not_admitted` | 403 | The call used an application's [platform credential](https://turnzero.ai/cloud/concepts/glossary/#platform-credential) for an account-management action that does not admit it. That credential serves `read_account`. Storage, logging, egress, push, email, and end-user verification admit the credential on their runtime routes. | Use your signed-in session or a [minted token](https://turnzero.ai/cloud/concepts/glossary/#minted-token). |
| `authentication_required` | 401 | No credential matched an account. | Sign in again through your AI assistant. |
| `account_suspended` | 403 | The account is suspended, so sign-ins and actions that need your identity are refused. | Wait for platform staff to reinstate the account, then sign in again. |
| `identity_already_bound` | 409 | The provider identity you tried to link already belongs to a different account. | Sign in to that account, or link a different identity. |
| `signin_code_invalid` | 400 | The sign-in code is wrong, expired, replaced, or from another browser. The sixth try ends the code, even if the digits are right. | Type the code from the latest email, in the browser that asked for it, or choose Request a new code. |
| `signin_code_rate_limited` | 429 | Too many codes went to this address within the hour, or too many tries failed. Or the platform reached its limit on sending email. | Wait for the hour to pass, or sign in another way. |
| `sign_in_required` | 401 | No sign-in method is set up for the request, or a passkey page was opened in a browser that is not signed in. | Sign in first. For the passkey pages, sign in on the site, then open them. |
| `passkeys_not_configured` | 404 | Passkeys are not available, because the platform's passkey site or its email sender for codes is not set up. | Sign in another way. |
| `passkey_requires_email` | 409 | You asked to add a passkey to an account that does not sign in by emailed code. A registered passkey signs you in without an emailed code. | Check your Google or GitHub sign-in’s verified email address in **Account & security**. Sign in by code once with that address to add emailed-code sign-in to your account. Add the passkey at that sign-in’s offer or open **Manage** in the **Passkeys** row. |
| `offer_cookie_required` | 400 | The passkey offer was opened without the cookie the offer page set, or that browser signed out, which clears the cookie. | Return to the offer page before the offer ends, or add the passkey later through **Manage** in the **Passkeys** row. |
| `passkey_registration_refused` | 400 | The new passkey could not be verified. | Open **Manage** in the **Passkeys** row and try adding it again. |
| `passkey_already_registered` | 409 | This passkey is already registered. | Use the registered passkey, or register a different authenticator. |
| `passkey_challenge_unknown` | 400 | The one-time code the platform gave for these passkey steps, called the challenge, is unknown, expired, or was made for another purpose. | Start the passkey steps again from the page. |
| `passkey_origin_mismatch` | 400 | The passkey steps ran on a site other than the platform's. | Run them from the sign-in page at `https://dev.turnzero.ai`. |
| `passkey_rp_id_mismatch` | 400 | The authenticator names a site other than the platform's. | Run the passkey steps from the sign-in page at `https://dev.turnzero.ai`. |
| `passkey_assertion_refused` | 400 or 401 | The passkey's answer could not be read (400), or its signature or user could not be verified (401). | Try the passkey again, or sign in another way and register it again. |
| `passkey_counter_regressed` | 403 | The authenticator's use count went backwards, which can mean someone copied the authenticator. | Sign in another way. Open **Manage** in the **Passkeys** row, remove the passkey, and register it again. |
| `passkey_unknown` | 404 | No passkey matches, or its account no longer exists. A passkey on an account that does not sign in by emailed code is removed and refused this way. | Before renaming or removing a passkey, reload the passkey list and select one your account still holds. If sign-in failed, use a passkey registered on the current sign-in host or another offered method. To register a replacement, sign in by emailed code and accept the passkey offer. |
| `passkey_change_closed` | 409 | The Undo window has ended or the change was already undone. | Reload the passkey controls and check which passkeys are listed. |
| `passkey_change_unknown` | 404 | No change on this account matches the request. A removed passkey cannot be restored after the account loses its last emailed-code sign-in. | Reload the passkey controls and check which passkeys are listed. |
| `passkey_not_stranded` | 409 | You asked for the special removal of a passkey that still works on this site. | Open **Manage** in the **Passkeys** row and remove the passkey by confirming with any passkey registered to your account. If no passkey can confirm the removal, open **No longer have this passkey?** and choose **Remove it without the passkey** after signing in within the last eight hours. |

## Related

- [Your account](/turnzero/guides/your-account/) shows the account, its identities, and its [standing](https://turnzero.ai/cloud/concepts/glossary/#standing).
- [Connect your AI assistant](https://turnzero.ai/cloud/getting-started/connect-your-tool/) covers your AI assistant's sign-in.
- [Manage end users](https://turnzero.ai/cloud/guides/manage-end-users/) covers passkeys and notices for an application's own users.
- [Sign-in, sessions, and tokens](https://turnzero.ai/cloud/concepts/sign-in-sessions-and-tokens/) compares every credential, how long it lasts, and what ends it.
- [Glossary](https://turnzero.ai/cloud/concepts/glossary/) defines the terms used on this page.
- [link_identity](https://turnzero.ai/cloud/reference/actions/link-identity/) and [read_account](https://turnzero.ai/cloud/reference/actions/read-account/) in the generated reference give each action's arguments, result, and refusals.
