---
title: "presentAuthorizationViewController(completion:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/asauthorizationproviderextensionauthorizationrequest/presentauthorizationviewcontroller(completion:)"
---

# presentAuthorizationViewController(completion:)

Asks the authorization service to show the extension’s view controller to the user.

## Declaration

```swift
func presentAuthorizationViewController(completion: @escaping @Sendable (Bool, (any Error)?) -> Void)
```

```swift
func presentAuthorizationViewController() async throws
```

## Parameters

- `completion`: A completion handler that the method uses to indicate whether the view controller was presented successfully, and the specific error if not.

## Discussion

Discussion This is only valid during authentication requests. If the system can’t show the controller, the completion returns an error.

## See Also

### Interacting with the User

- [isUserInterfaceEnabled](authenticationservices/asauthorizationproviderextensionauthorizationrequest/isuserinterfaceenabled.md)
