<!--
{
  "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/completeRegistrationRequest(using:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(cs)ASCredentialProviderExtensionContext(im)completeRegistrationRequestWithSelectedPasskeyCredential:completionHandler:"
  },
  "title" : "completeRegistrationRequest(using:completionHandler:)"
}
-->

# completeRegistrationRequest(using:completionHandler:)

Complete the registration request by providing the newly-created passkey credential.

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

```
func completeRegistrationRequest(using credential: ASPasskeyRegistrationCredential) async -> Bool
```

## Parameters

`credential`

The credential your extension created in response to the registration request.

`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)