---
title: "completeGeneratePasswordRequest(results:completionHandler:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/ascredentialproviderextensioncontext/completegeneratepasswordrequest(results:completionhandler:)"
---

# completeGeneratePasswordRequest(results:completionHandler:)

Return potential passwords for the given request.

## Declaration

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

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