---
title: cancelRequest()
framework: passkit
role: symbol
role_heading: Instance Method
path: passkit/pkidentityauthorizationcontroller/cancelrequest()
---

# cancelRequest()

Cancels a request in progress.

## Declaration

```swift
func cancelRequest()
```

## Discussion

Discussion Use this method to cancel an in progress request. Cancellation isn’t guarenteed when you call this method, the system might return a document response if it was already in flight.
