ACC-10Optional
Keep the password manager's passkey list current
Tell the browser when a passkey stops working or a user's name changes, with the WebAuthn signal methods, so people stop picking dead passkeys.
How to do it
When sign-in fails because the credential ID is unknown, call PublicKeyCredential.signalUnknownCredential(). After someone deletes a passkey in settings, call signalAllAcceptedCredentials() with the IDs that remain. After a change of email or display name, call signalCurrentUserDetails(). Test that each method exists first, because older browsers lack them. The server sends the lists, so it stays the source of truth. Password managers find your passkey pages through the passkey addresses file.
Examples
JavaScript example
async function afterPasskeyDeleted() {
if (!PublicKeyCredential.signalAllAcceptedCredentials) return;
const accepted = await (await fetch('/passkeys/accepted')).json();
await PublicKeyCredential.signalAllAcceptedCredentials(accepted);
}
Python example
from webauthn.helpers import bytes_to_base64url
@app.get("/passkeys/accepted")
def accepted_passkeys(user=Depends(current_user)):
return {
"rpId": "example.com",
"userId": bytes_to_base64url(user.webauthn_handle),
"allAcceptedCredentialIds": [bytes_to_base64url(p.credential_id) for p in user.passkeys],
}
How to check
A browser test deletes a passkey in settings and spies on signalAllAcceptedCredentials. It is called once, with every remaining ID and without the deleted one.
Sources
Related rules
- WEB-169 Point password managers to your account pages in Website
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/accounts/sign-in-methods/passkey-signals">Agent Wranglers accounts and identity playbook</a>. In code you write, add a comment next to it with the same link.