---
title: "complete(error:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/asauthorizationproviderextensionauthorizationrequest/complete(error:)"
---

# complete(error:)

Indicates the requested authorization failed.

## Declaration

```swift
func complete(error: any Error)
```

## Parameters

- `error`: An indication of why the authorization failed.

## See Also

### Completing a Request

- [complete(authorizationResult:)](authenticationservices/asauthorizationproviderextensionauthorizationrequest/complete(authorizationresult:).md)
- [complete()](authenticationservices/asauthorizationproviderextensionauthorizationrequest/complete().md)
- [complete(httpAuthorizationHeaders:)](authenticationservices/asauthorizationproviderextensionauthorizationrequest/complete(httpauthorizationheaders:).md)
- [complete(httpResponse:httpBody:)](authenticationservices/asauthorizationproviderextensionauthorizationrequest/complete(httpresponse:httpbody:).md)
