---
title: "reportUnknownPublicKeyCredential(forRelyingParty:credentialID:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/ascredentialproviderviewcontroller/reportunknownpublickeycredential(forrelyingparty:credentialid:)"
---

# reportUnknownPublicKeyCredential(forRelyingParty:credentialID:)

Receives a report from the system that a relying party indicated a passkey credential is invalid.

## Declaration

```swift
func reportUnknownPublicKeyCredential(forRelyingParty relyingParty: String, credentialID: Data)
```

## Parameters

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

## Discussion

Discussion The system calls this method when a relying party reports an invalid passkey by calling reportUnknownPublicKeyCredential(relyingPartyIdentifier:credentialID:). Your manager can hide or remove the credential after it receives this report. important: Perform any updates in the background and don’t show a blocking UI or any error. 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

- [reportAllAcceptedPublicKeyCredentials(forRelyingParty:userHandle:acceptedCredentialIDs:)](authenticationservices/ascredentialproviderviewcontroller/reportallacceptedpublickeycredentials(forrelyingparty:userhandle:acceptedcredentialids:).md)
- [reportPublicKeyCredentialUpdate(forRelyingParty:userHandle:newName:)](authenticationservices/ascredentialproviderviewcontroller/reportpublickeycredentialupdate(forrelyingparty:userhandle:newname:).md)
- [reportUnusedPasswordCredential(forDomain:userName:)](authenticationservices/ascredentialproviderviewcontroller/reportunusedpasswordcredential(fordomain:username:).md)
