<!--
{
  "availability" : [
    "iOS: 26.2.0 -",
    "iPadOS: 26.2.0 -",
    "macCatalyst: 26.2.0 -",
    "visionOS: 26.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASCredentialProviderExtensionContext/completeGeneratePasswordRequest(results:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(cs)ASCredentialProviderExtensionContext(im)completeGeneratePasswordRequestWithResults:completionHandler:"
  },
  "title" : "completeGeneratePasswordRequest(results:completionHandler:)"
}
-->

# completeGeneratePasswordRequest(results:completionHandler:)

Return potential passwords for the given request.

```
func completeGeneratePasswordRequest(results: [ASGeneratedPassword], completionHandler: (@Sendable (Bool) -> Void)? = nil)
```

```
func completeGeneratePasswordRequest(results: [ASGeneratedPassword]) async -> Bool
```

## Parameters

`results`

Potential passwords that the user can select. You can provide multiple options for increased flexibility on the user’s behalf.
These results should be returned in priority order.

`completionHandler`

An optional block your extension can provide to perform any cleanup work after the system has captured the results.
The expired parameter is true if the system decides to prematurely end a previous non-expiration invocation of the completion handler.

---

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)