feat: add WebAuthn Signal API (signalUnknownCredential, signalAllAcceptedCredentials)#105
Open
plgrazon wants to merge 1 commit into
Open
feat: add WebAuthn Signal API (signalUnknownCredential, signalAllAcceptedCredentials)#105plgrazon wants to merge 1 commit into
plgrazon wants to merge 1 commit into
Conversation
plgrazon
marked this pull request as draft
June 18, 2026 15:56
plgrazon
marked this pull request as ready for review
July 6, 2026 13:28
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.
Summary
Adds the WebAuthn Signal API to the package so apps can keep OS credential managers (iCloud Keychain, Google Password Manager, …) in sync with their server — removing/hiding passkeys the server has revoked or deleted.
Two methods are added to
Passkey:Passkey.signalUnknownCredential({ rpId, credentialId })— reports a single credential the relying party no longer recognizes. Safe to call unauthenticated (e.g. after a failed sign-in): it takes only a credential id and no user handle.Passkey.signalAllAcceptedCredentials({ rpId, userId, allAcceptedCredentialIds })— reports the complete set of credential ids still accepted for a user; the OS removes/hides any stored credential not in the list (reversible; an empty list hides all). Use when authenticated to authoritatively prune.Both are best-effort: they resolve once the request is accepted and no-op on OS versions without Signal API support. Credential ids and the user handle are Base64URL strings.
Implementation
Passkeyplus exported request typesPasskeySignalUnknownCredentialRequest/PasskeySignalAllAcceptedCredentialsRequest.ASCredentialUpdater.reportUnknownPublicKeyCredential/reportAllAcceptedPublicKeyCredentials, guarded by#available(iOS 26.0, *)(no-ops below). Reuses the existingData(base64URLEncoded:)helper.CredentialManager.signalCredentialStatewithSignalUnknownCredentialRequest/SignalAllAcceptedCredentialIdsRequest. This requires bumpingandroidx.credentials1.5.0 → 1.6.0 (the release that ships these classes).allAcceptedCredentialIdsis JSON-stringified).Notes for reviewers
ASCredentialUpdaterneeds the iOS 26 SDK at compile time. The podspec deployment target stays at 15.0 and the#availableguard handles runtime, but CI must build with an Xcode that has the iOS 26 SDK.signalCurrentUserDetailsis intentionally not included in this PR; it can be added in a follow-up.Test plan
yarn lintyarn typescriptyarn test(13 passed)yarn prepare(bob build)