Re: [webauthn] Update Virtual Authenticator API to better emulate synced passkey behavior (#2382)

@kreichgauer raised a good point to me after the WG meeting that it's entirely allowed by the spec that `signCount: 0` come back from `.create()`, especially if no signature is present in the registration response because of `"none"` attestation taking place:

https://w3c.github.io/webauthn/#sctn-op-make-cred:~:text=If%20the%20authenticator%3A,be%20constant%20at%20zero.

Then subsequent authentication responses would contain an incremented signature counter because actual signatures are being generated, meaning the first response from `.get()` after using the **Add Credential** endpoint to add a credential is okay to increment from `0` and populate `authData.signCount: 1`:

https://w3c.github.io/webauthn/#sctn-sign-counter:~:text=The%20signature%20counter%20is%20incremented%20for%20each%20successful%20authenticatorGetAssertion%20operation%20by%20some%20positive%20value

It now seems to be perfectly fine, then, to allow the **Add Credential** and **Set Credential Properties** endpoints to set a `0` signature counter that increments, which means the behavior as currently defined in this PR is allowed by the rest of the spec. I believe the PR is fine to merge as-is, then, unless someone corrects my understanding here.

The one change I _did_ make after this realization is to tweak a bit of verbiage to prescribe Virtual Authenticators behavior when a `null` value for the endpoints' `signCount` argument is set, instead of prescribing how `authData.signCount` gets populated (the former is implied within the new wording that achieves the former, and also avoids potentially under-defining other virtual authenticator behavior when a signature counter is not associated to a credential.)

-- 
GitHub Notification of comment by MasterKale
Please view or discuss this issue at https://github.com/w3c/webauthn/pull/2382#issuecomment-4985257770 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 15 July 2026 21:04:19 UTC