Contents

reportAllAcceptedPublicKeyCredentials(relyingPartyIdentifier:userHandle:acceptedCredentialIDs:)

Provides credential managers with a snapshot of all credential identifiers accepted for a given user handle.

Declaration

final func reportAllAcceptedPublicKeyCredentials(relyingPartyIdentifier: String, userHandle: Data, acceptedCredentialIDs: [Data]) async throws

Parameters

  • relyingPartyIdentifier:

    The relying party, typically a website, for which to save the credential.

  • userHandle:

    The user identifier.

  • acceptedCredentialIDs:

    An array of identifiers that uniquely identifies the accepted credentials.

Discussion

If your app allows someone to revoke a passkey or create a new one, call this method to report all credentials still accepted after the change. Credential managers can act on this report by removing or hiding any credentials not present in acceptedCredentialIDs, which prevents display of invalid passkeys during later sign ins.

You can also call this method periodically, such as by invoking it on every sign in. This sort of periodic check in helps keep credential managers up to date.

This call shares the updated credential data with all enabled credential managers installed on the system.