---
title: cancel()
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: authenticationservices/asauthorizationcontroller/cancel()
---

# cancel()

Cancels any active authorization requests.

## Declaration

```swift
func cancel()
```

## Discussion

Discussion If calling this method cancels an active authorization request, the authorization controller calls its delegate’s authorizationController(controller:didCompleteWithError:) method.

## See Also

### Executing requests

- [performRequests()](authenticationservices/asauthorizationcontroller/performrequests().md)
- [performRequests(options:)](authenticationservices/asauthorizationcontroller/performrequests(options:).md)
- [performAutoFillAssistedRequests()](authenticationservices/asauthorizationcontroller/performautofillassistedrequests().md)
- [ASAuthorizationController.RequestOptions](authenticationservices/asauthorizationcontroller/requestoptions.md)
