---
title: "reportUnknownPublicKeyCredential(relyingPartyIdentifier:credentialID:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/ascredentialupdater/reportunknownpublickeycredential(relyingpartyidentifier:credentialid:)"
---

# reportUnknownPublicKeyCredential(relyingPartyIdentifier:credentialID:)

Informs credential managers that a specific credential is unknown or no longer accepted.

## Declaration

```swift
final func reportUnknownPublicKeyCredential(relyingPartyIdentifier: String, credentialID: Data) async throws
```

## Parameters

- `relyingPartyIdentifier`: The relying party, typically a website, for which to update the credential.
- `credentialID`: An identifier that uniquely identifies this credential.

## Discussion

Discussion Credential managers can act on this report by removing or hiding the credential. This call shares the updated credential data with all credential managers installed on the system. note: This method throws ASAuthorizationError if the system failed to accept the update.

## See Also

### Reporting unused and unknown credentials

- [reportUnusedPasswordCredential(domain:userName:)](authenticationservices/ascredentialupdater/reportunusedpasswordcredential(domain:username:).md)
