Repository navigation
fix(web): stop Apple's passkey notification on every visit to Settings - #147
Merged
Merged
Conversation
Settings told the browser's passkey provider the account's email and
name (signalCurrentUserDetails) each time it opened. Apple's Passwords
notifies the person of each such signal, changed or not ("Passkey
Updated: The website app.fctl.sh changed the user name for your passkey
to …"), so iPhones showed it on every visit.
The app now gives them only when they changed since this browser last
gave them, or made a passkey with them: it keeps a short hash of them
for each account in localStorage, never the email itself. Accounts
without passkeys get no such signal.
kalaspuff
approved these changes
Oct 20, 2026
kalaspuff
deleted the
fctl/88-everytime-i-to-the-settings-page-in-my-m
branch
October 20, 2026 19:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On an iPhone, every visit to Settings showed Apple's notification "Passkey Updated: The website "app.fctl.sh" changed the user name for your passkey to …". Settings called
PublicKeyCredential.signalCurrentUserDetailswith the account's email and name each time it opened. Apple's Passwords app reports every such signal, even when the email and name are the ones the passkey already has. Apple's guidance (WWDC25, What's new in passkeys) is to send it when the account's user name or email changes.What changed
signalDetails(web/src/lib/passkeys.ts) gives the email and name only when they changed since this browser last gave them for the account. To tell, the browser keeps a short hash of them (32-bit FNV-1a) in localStorage underfctl:passkey-details:<user handle>. It never keeps the email or name themselves. It keeps the hash before the browser answers, for two reasons: Safari's signals haven't always answered (WebKit bug 298951), and React's StrictMode runs the effect twice in development. A refused signal drops the hash, so the next visit tries again.signalAllAcceptedCredentialsstill goes on every visit, as Apple and Chrome suggest for keeping providers' lists current. It shows nothing when nothing is removed.Each browser gives the details once more, on its first visit to Settings after this ships, because it has no hash yet. After that it gives them only when the name or primary email changes, including changes made in another browser or with the CLI. Safari clears a site's storage after seven days of use without a visit to it, so such a browser gives them once more too.
The privacy policy lists what app.fctl.sh keeps in the browser: hyperstructure/fctl-site#32 adds the hash. Merge the two together. Neither needs the other to build.
Verification
web/src/lib/passkeys.test.tschecks that the details:Four of the new tests fail against
main'ssignalDetails.cd web && npm run check && npm test(290 tests), andcargo xtask check --quick.End to end with
cargo xtask devand Playwright's Chromium, which counted the signals Settings sent and made a real passkey with Chromium's virtual authenticator. The development build runs each effect twice (StrictMode).main, three visits to Settings sent the unchanged details six times.Nothing changes in how the app looks, so there are no screenshots.
Made in fctl session https://app.fctl.sh/s/ses_01M5D7WM9NNB04APATMJR6Y1ZE