---
title: "completeRequest(withTextToInsert:completionHandler:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/ascredentialproviderextensioncontext/completerequest(withtexttoinsert:completionhandler:)"
---

# completeRequest(withTextToInsert:completionHandler:)

Provides the user-selected text.

## Declaration

```swift
func completeRequest(withTextToInsert text: String, completionHandler: (@Sendable (Bool) -> Void)? = nil)
```

```swift
func completeRequest(withTextToInsert text: String) async -> Bool
```

## Parameters

- `text`: The text to insert.
- `completionHandler`: Optional work that the extension performs as a background-priority task after the request completes. The expired parameter is YES if the system prematurely terminates a previous non-expiration invocation of the completionHandler.

## Overview

Overview At some point after you call this method, the system dismisses the associated view controller.
