---
title: cancelRequest()
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: authenticationservices/asaccountauthenticationmodificationviewcontroller/cancelrequest()
---

# cancelRequest()

Cancels a request that the user initiated.

## Declaration

```swift
func cancelRequest()
```

## Mentioned in

Upgrading Account Security With an Account Authentication Modification Extension

## See Also

### Handling Modification Requests

- [ASAccountAuthenticationModificationControllerDelegate](authenticationservices/asaccountauthenticationmodificationcontrollerdelegate.md)
- [ASAccountAuthenticationModificationControllerPresentationContextProviding](authenticationservices/asaccountauthenticationmodificationcontrollerpresentationcontextproviding.md)
