---
title: "authorizationController(_:didCompleteWithCustomMethod:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/asauthorizationcontrollerdelegate/authorizationcontroller(_:didcompletewithcustommethod:)"
---

# authorizationController(_:didCompleteWithCustomMethod:)

Informs the delegate when authorization completes, and specifies the custom method the user selected.

## Declaration

```swift
optional func authorizationController(_ controller: ASAuthorizationController, didCompleteWithCustomMethod method: ASAuthorizationCustomMethod)
```

## Parameters

- `controller`: The controller performing the authorization attempt.
- `method`: The custom method the user selected. For a list of custom methods, see doc://com.apple.authenticationservices/documentation/AuthenticationServices/ASAuthorizationCustomMethod.

## See Also

### Apple TV authentication

- [customAuthorizationMethods](authenticationservices/asauthorizationcontroller/customauthorizationmethods.md)
- [ASAuthorizationCustomMethod](authenticationservices/asauthorizationcustommethod.md)
