---
title: IntentAuthenticationPolicy.requiresLocalDeviceAuthentication
framework: appintents
role: symbol
role_heading: Case
path: appintents/intentauthenticationpolicy/requireslocaldeviceauthentication
---

# IntentAuthenticationPolicy.requiresLocalDeviceAuthentication

A policy that requires the person to unlock the device running the intent.

## Declaration

```swift
case requiresLocalDeviceAuthentication
```

## Discussion

Discussion Use this policy if your app intent relies on data or services that are only available when the current device is unlocked. The system asks the person to unlock their device if it’s currently locked, even if the request originated from an already authenticated Apple Watch or remote device. For example, you might use this option if your app intent accesses data on disk that’s encrypted when the device is locked.

## See Also

### Authentication policies

- [IntentAuthenticationPolicy.alwaysAllowed](appintents/intentauthenticationpolicy/alwaysallowed.md)
- [IntentAuthenticationPolicy.requiresAuthentication](appintents/intentauthenticationpolicy/requiresauthentication.md)
