---
title: "completeAssertionRequest(using:completionHandler:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/ascredentialproviderextensioncontext/completeassertionrequest(using:completionhandler:)"
---

# completeAssertionRequest(using:completionHandler:)

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

## Declaration

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

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

Discussion The synchronous version of this method calls its completion handler with background priority.

## See Also

### Providing credentials

- [completeRequest(withSelectedCredential:completionHandler:)](authenticationservices/ascredentialproviderextensioncontext/completerequest(withselectedcredential:completionhandler:).md)
- [completeRegistrationRequest(using:completionHandler:)](authenticationservices/ascredentialproviderextensioncontext/completeregistrationrequest(using:completionhandler:).md)
- [completeOneTimeCodeRequest(using:completionHandler:)](authenticationservices/ascredentialproviderextensioncontext/completeonetimecoderequest(using:completionhandler:).md)
- [ASPasswordCredential](authenticationservices/aspasswordcredential.md)
- [ASPasskeyAssertionCredential](authenticationservices/aspasskeyassertioncredential.md)
- [ASPasskeyRegistrationCredential](authenticationservices/aspasskeyregistrationcredential.md)
- [ASOneTimeCodeCredential](authenticationservices/asonetimecodecredential.md)
