<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASCredentialProviderExtensionContext/completeAssertionRequest(using:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(cs)ASCredentialProviderExtensionContext(im)completeAssertionRequestWithSelectedPasskeyCredential:completionHandler:"
  },
  "title" : "completeAssertionRequest(using:completionHandler:)"
}
-->

# completeAssertionRequest(using:completionHandler:)

Complete the passkey assertion request by providing the user-selected passkey credential.

```
func completeAssertionRequest(using credential: ASPasskeyAssertionCredential, completionHandler: (@Sendable (Bool) -> Void)? = nil)
```

```
func completeAssertionRequest(using credential: ASPasskeyAssertionCredential) async -> Bool
```

## Parameters

`credential`

The credential that the user selected.

`completionHandler`

An optional block your extension can provide to perform any cleanup work after the system has used the credential. The expired parameter is <doc://com.apple.documentation/documentation/Swift/true> if the system decides to prematurely end a previous non-expiration invocation of the completion handler.

## Discussion

The synchronous version of this method calls its completion handler with <doc://com.apple.documentation/documentation/Dispatch/DispatchQoS/background> priority.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)