Contents

reportUnusedPasswordCredential(forDomain:userName:)

Receives a report from the system that a relying party indicatd that a password credential isn’t needed anymore for a given user name.

Declaration

func reportUnusedPasswordCredential(forDomain domain: String, userName: String)

Parameters

  • domain:

    The website domain that the credential is saved for.

  • userName:

    The account user name.

Discussion

The system calls this method when a relying party reports calls reportUnusedPasswordCredential(domain:userName:) to indicate a password isn’t needed anymore. It may call this because a person using the app has transitioned to using a passkey, or because they deleted their account. Your manager can hide or remove the credential after it receives this report.

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