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

# cancel()

Cancels the request, for example, because the user taps a cancel button.

## Declaration

```swift
func cancel()
```

## See Also

### Canceling a Request

- [doNotHandle()](authenticationservices/asauthorizationproviderextensionauthorizationrequest/donothandle().md)
