---
title: isAuthenticationRequired
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uimutableusernotificationaction/isauthenticationrequired
---

# isAuthenticationRequired

A Boolean value indicating whether the user must unlock the device before the action is performed.

## Declaration

```swift
var isAuthenticationRequired: Bool { get set }
```

## Discussion

Discussion The value of this property is ignored and treated as a value of true when the value of the activationMode property is set to UIMutableUserNotificationAction. If your app uses data protection to encrypt data on disk, consider the data needs of the corresponding action before setting this property to false. For many data protection classes, data remains encrypted and unavailable while the device is locked. If your app needs to access encrypted data to perform a task, you likely need to set this property to true to ensure that the data is accessible.

## See Also

### Configuring the action’s behavior

- [activationMode](uikit/uimutableusernotificationaction/activationmode.md)
- [isDestructive](uikit/uimutableusernotificationaction/isdestructive.md)
- [behavior](uikit/uimutableusernotificationaction/behavior.md)
- [parameters](uikit/uimutableusernotificationaction/parameters.md)
