# Passkey review: how it works today, on iPhone, moving phones, and what we recommend

**From Designer, 12 Nov 2026 (SAST).** Written for MT. Plain words first, details and sources after.

## The short answer

- **Is passkey sign-in built?** Partly. The server side is written, but only on a branch (`job6/member-doorways`, built on `job1/member-signin`). It is not on `main` and not live. No page on the site calls it yet, so nobody can use it today.
- **Does it work straight from an iPhone?** Yes. In Safari, Face ID creates and uses it, and iCloud Keychain saves it. Chrome on iPhone works too. It does **not** work reliably inside Instagram, Facebook, TikTok or WhatsApp's built-in browsers.
- **What happens on a new phone?** On a new iPhone with the same Apple Account, the passkey comes across by itself (iCloud Keychain). Android and Windows can use an iPhone passkey by scanning a QR code with the iPhone. If a pilot loses every device, the email code still gets them in, and the server already promises that.
- **Is it easy for pilots?** It's the easiest way in once it's set up: one tap and a glance. Setting it up is the hard part, because many people still don't know what a passkey is.
- **Recommendation:** keep passkey, but **not as the main way in.** Make **Continue with Google** and **email** (6-digit code, password optional) the main ways in. Offer "Add a passkey" right after sign-up and in Settings, and show "Sign in with a passkey" on the sign-in screen for people who have one. That is exactly how the new design is laid out.

## 1. How it works in the code today

**Branch:** `sdzrxwfxd2-cloud/Go-Around-Cloudflare`, `job6/member-doorways`, commit `7edeb5e` (11 Nov 2026, 16:26 SAST). `main` has no member sign-in at all; it only has the site-wide demo password (`cloudflare/lib/auth.mjs`, Basic Auth).

| Piece | File | What it does |
|---|---|---|
| Sign-in flow | `cloudflare/lib/reviews/data_auth.mjs` | Every **new** account starts with a **6-digit email code** (10 min, 5 tries, rate limits). Passkeys come later. |
| Add a passkey | `functions/api/auth/passkey/register-options.js` → `register.js` | **Signed-in members only.** The server gives a 5-minute challenge for `navigator.credentials.create()`, then checks and stores the public key in `member_credentials`. |
| Sign in with a passkey | `functions/api/auth/passkey/signin-options.js` → `signin.js` | A 5-minute challenge for `navigator.credentials.get()`. No account list is sent, so the phone offers whichever Go Around passkey it holds (a "discoverable" passkey). It checks the signature and opens a session. |
| List / remove | `functions/api/auth/passkeys/` | Members see and remove their passkeys. Removing never locks anyone out: "the email code always works". |
| The crypto | `cloudflare/lib/reviews/admin_auth.mjs` | No library, WebCrypto only. It requires **user verification** (Face ID, Touch ID or the phone PIN) and accepts **ES256 keys only** (`only_es256`). |
| Settings | env `MEMBER_RP_ID`, `SITE_ORIGIN` | Without these the server answers "Passkeys are not available right now." |

**What's missing:**
1. **No front-end.** Nothing calls `navigator.credentials`. The design now has the buttons and hooks (`auth-hooks.js`).
2. **No password sign-in or reset** in the server code. It's email code only, while DECISIONS-MASTER says email + password. Go Around must build it or MT must drop passwords.
3. **No Google.** MT added it on 12 Nov.
4. **ES256 only.** Apple, Google Password Manager and most security keys use ES256, so iPhone and Android are fine. Some Windows Hello setups make RS256 keys, so also accept RS256 (`-257`).
5. **The domain matters.** A passkey belongs to one domain (the "RP ID"). If people make passkeys on `*.pages.dev` and the site then moves to the final domain, every passkey stops working. Set `MEMBER_RP_ID` to the final domain before launch. To span two domains you need Related Origin Requests ([passkeys.dev](https://passkeys.dev/docs/advanced/related-origins/)).

## 2. Can a pilot make and use it straight from the iPhone?

| Where the pilot is | Works? | What they see |
|---|---|---|
| **Safari** (iOS 16+) | Yes | "Save a passkey?" then Face ID. The passkey saves to the Passwords app and iCloud Keychain. Next time: tap "Sign in with a passkey", glance, and they're in. |
| **Chrome on iPhone** | Yes | By default it saves to iCloud Keychain as well. On iOS 17+, if Chrome is switched on under Settings > General > AutoFill & Passwords, it can save to **Google Password Manager** instead, which syncs to Android and Windows Chrome. ([Chrome blog](https://developer.chrome.com/blog/passkeys-gpm-ios), [Google](https://developers.google.com/identity/passkeys/supported-environments)) |
| **Home-screen web app** | Expected yes | It runs on Safari's engine, so WebAuthn is available. **Test on a real iPhone before launch** (Designer could not test this on a real device). |
| **In-app browsers** (Instagram, Facebook, TikTok, WhatsApp links) | **No, not reliably** | These are embedded web views. Passkeys there only work for the app's own linked domain, so ours won't show up ([passkeys.dev iOS](https://passkeys.dev/docs/reference/ios/)). **Google sign-in is blocked there too** (`403 disallowed_useragent`, [Google](https://developers.googleblog.com/en/upcoming-security-changes-to-googles-oauth-20-authorization-endpoint-in-embedded-webviews/)). **Design action:** detect in-app browsers and show "Open in Safari to sign in", with the email code as the fallback. |

## 3. Moving to a new phone or another device

- **New iPhone, same Apple Account:** turn on iCloud Keychain and approve the new phone from an old device (or with the old phone's passcode). The passkeys arrive by themselves. ([Apple: iCloud Keychain on iPhone](https://support.apple.com/guide/iphone/passwords-devices-iph82d6721b2/ios), [Apple: Passwords app](https://support.apple.com/en-us/120758))
- **Lost every Apple device:** iCloud Keychain recovery brings them back. Sign in to the Apple Account, answer the SMS to the trusted number, then enter the old device passcode. Ten tries, then the escrow is destroyed. A recovery contact can help too. ([Apple: About the security of passkeys](https://support.apple.com/en-us/102195))
- **iCloud Keychain switched off:** the passkey stays on that one phone only. Losing the phone means losing the passkey, so the pilot falls back to the email code.
- **iPhone to Android, or Android to iPhone:** the passkey does not move between Apple and Google automatically. The pilot can either:
  - add a second passkey on the new phone after signing in with the email code or Google (the server allows several per account), **or**
  - use the old phone to sign in on the new device by scanning a QR code. The phone and computer check they're near each other over Bluetooth, and the passkey never leaves the phone. ([Google: sign in with a phone](https://developers.google.com/identity/passkeys/use-cases), [Chrome help](https://support.google.com/chrome/answer/13168025?co=GENIE.Platform%3DiOS&hl=en))
- **Windows or a Mac in the flight school:** use the phone through the same QR code. Nothing is saved on the shared computer, which suits shared ATO computers.
- **Switching password manager** (for example Apple Passwords to 1Password or Bitwarden): on iOS 26 and on Android this is now a secure built-in transfer (FIDO Credential Exchange), with no export file. Go Around doesn't need to do anything. ([Apple WWDC25](https://developer.apple.com/videos/play/wwdc2025/279/), [Bitwarden, July 2026](https://bitwarden.com/resources/july-2026-spotlight-your-passkeys-can-now-move-freely-heres-how/))
- **Account recovery at Go Around:** the email code always works. That's the safety net. Recommend also showing "Your passkeys" in Settings with **device name + last used** (the server already stores `label`, `last_used_at`), so a pilot can remove a lost phone's passkey.

## 4. How easy is it for pilots?

| | Easy part | Hard part |
|---|---|---|
| Passkey | Signing in: one tap and Face ID, nothing to type or remember, and it can't be phished. | Setting it up: people don't know the word, it needs an account first (the server rule), it fails in in-app browsers, and moving to Android needs a second passkey or the QR step. |
| Google | Signing up: two taps, with the name and email filled in. Most SA pilots already have Gmail. | It's blocked in in-app browsers. It needs MT to set up a Google Cloud project, and pilots who don't use Google can't use it. |
| Email code | Works everywhere, even in in-app browsers, and there's no password to forget. It's already in the code. | It needs a trip to the mailbox each time. Email sending must be fast and reliable. |
| Password | Familiar. | People forget it and reuse it. It needs reset emails, breach checks and lockout rules, **and none of that is built yet.** |

## 5. Recommendation

1. **Main ways in:** **Continue with Google** (top) and **email** (bottom). On the email route, keep password + "Email me a sign-in code instead".
2. **Passkey: keep it.** Show "Sign in with a passkey" on sign-in (second button). Offer **"Add a passkey"** on the done screen and in Settings. Don't ask for one during sign-up, because the server needs the account to exist first.
3. **Later, optional:** add passkey autofill (conditional UI) on the email field (`autocomplete="username webauthn"`, `mediation:'conditional'`), so the iPhone offers the passkey before the pilot taps anything ([web.dev](https://web.dev/articles/passkey-form-autofill)).
4. **Before launch:** fix the RP ID to the final domain, accept RS256, and add the "Open in Safari" notice for in-app browsers.
5. **Passwords:** MT's call. Either Go Around builds password sign-in and reset, which DECISIONS asks for, or we go password-free (Google + email code + passkey) and remove the password field. Designer's view: going password-free is simpler and safer, and the server is already built that way. Either way, the design handles it: the password field and "Forgot your password?" are one block that can be removed.

## Sources (opened 12 Nov 2026)
- Apple: [About the security of passkeys](https://support.apple.com/en-us/102195) · [iCloud Keychain on iPhone](https://support.apple.com/guide/iphone/passwords-devices-iph82d6721b2/ios) · [Passwords app](https://support.apple.com/en-us/120758) · [Set up iCloud Keychain](https://support.apple.com/en-us/109016) · [WWDC25 What's new in passkeys](https://developer.apple.com/videos/play/wwdc2025/279/)
- Google: [Passkey support on Android and Chrome](https://developers.google.com/identity/passkeys/supported-environments) · [Passkeys on GPM for iOS](https://developer.chrome.com/blog/passkeys-gpm-ios) · [Manage passkeys in Chrome on iPhone](https://support.google.com/chrome/answer/13168025?co=GENIE.Platform%3DiOS&hl=en) · [Passkey use cases / cross-device](https://developers.google.com/identity/passkeys/use-cases) · [OAuth blocked in embedded webviews](https://developers.googleblog.com/en/upcoming-security-changes-to-googles-oauth-20-authorization-endpoint-in-embedded-webviews/) · [Sign in with Google branding](https://developers.google.com/identity/branding-guidelines)
- FIDO / web.dev / passkeys.dev: [FIDO passkeys](https://fidoalliance.org/passkeys/) · [CTAP 2.2 (hybrid / QR transport)](https://fidoalliance.org/specs/fido-v2.2-ps-20250714/fido-client-to-authenticator-protocol-v2.2-ps-20250714.html) · [web.dev passkey form autofill](https://web.dev/articles/passkey-form-autofill) · [passkeys.dev iOS reference](https://passkeys.dev/docs/reference/ios/)

— Designer
