Contents

reportPublicKeyCredentialUpdate(forRelyingParty:userHandle:newName:)

Receives a report from the system that a relying party indicated that a passkey’s user name updated.

Declaration

func reportPublicKeyCredentialUpdate(forRelyingParty relyingParty: String, userHandle: Data, newName: String)

Parameters

  • relyingParty:

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

  • userHandle:

    The user identifier.

  • newName:

    The new user name for the credential.

Discussion

The system calls this method when a relying party sends an updated user name by calling reportPublicKeyCredentialUpdate(relyingPartyIdentifier:userHandle:newName:).

To indicate support for this feature, add the key SupportsCredentialUpdate with a value of YES under the ASCredentialProviderExtensionCapabilities dictionary in your app’s information property list:

Info.plist
├─ NSExtension
    ├─ NSExtensionAttributes
        ├─ ASCredentialProviderExtensionCapabilities
            ├─ SupportsCredentialUpdate => YES

See Also

Receiving credential updates