Repository navigation
feat(console): make passkeys public and add a passkey sign-in button - #14400
Conversation
Passkeys are ready for everyone, so the Cloud rollout flag (`flags-passkeys` pref and the `passkeysFlag` profile feature) no longer gates the project passkey policy, the Passkey auth method, account passkeys or their command center entries. The sign-in page gets a "Sign in with a passkey" button that opens the browser's passkey prompt. Autofill only offers passkeys from the email field, which is easy to miss; the button makes the method visible. The browser runs one WebAuthn request at a time, so the button aborts the autofill request and autofill comes back if the prompt ends without a session.
|
Review complete. 🟡 1 medium 💬 Inline comments (1)
🧹 Nitpicks (2) — 🟢 2 low
The change removes the
Reviewed commit: 7aec89d |
🟢 Tier S · Ready to mergeThis change removes the Console passkey rollout-flag gates so account and project passkey settings are available to all users. It also adds a passkey sign-in button that uses optional WebAuthn mediation while preserving conditional email autofill, with mocked browser/API coverage for sign-in and cancellation.
📂 Walkthrough · 23
Reviewed |
There was a problem hiding this comment.
This PR makes passkeys generally available in the console and adds a passkey sign-in button on the sign-in page, removing the rollout feature flag.
Key findings
- 🟡 Optional passkey path ignores the 429 rate-limit ref — sign-in.tsx:326
What does this PR do?
Makes passkeys public in the Console, ahead of the passkeys announcement and docs (#14389).
flags-passkeysaccount pref and thepasskeysFlagprofile feature no longer gate anything. Every Console user now sees the project passkey policy, the Passkey auth method, account passkeys, and their command center and settings search entries. The flag's Debug menu toggle and prefs catalog entry are gone too.Cloud's
task-manage-flagsstill acceptspasskeys. The Console doesn't read it anymore, so it can be removed there whenever convenient.Test plan
End to end against a real backend. I ran a local Appwrite stack from this branch with the dev Console, in Chromium with a virtual platform authenticator:
/sign-in, and autofill came back.POST /account/tokens/passkey,PUT /account/tokens/passkeyandPOST /account/sessions/token, and the session came back withprovider: passkeyand factorspasskey, userVerification. It then landed on the redirect target.Automated tests
e2e/console.mocked.passkeys.spec.tsnow holds all passkey e2e coverage as five flow tests, down from 18 tests in two files: signing in with the button (with a virtual authenticator credential, a dismissed prompt, and no button on sign-up); Cloud users managing the relying party with no rollout flag; turning passkeys on through the domain dialog on self-hosted; local development with a localhost platform; and Android signing certificates.bun run test:unit(537 passed), ESLint, Prettier,lint:content, and both i18n audits are clean.Related: appwrite-labs/cloud#5805