<!--
{
  "availability" : [
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "LocalAuthentication",
  "identifier" : "/documentation/LocalAuthentication/LAPolicy/deviceOwnerAuthenticationWithWristDetection",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Local Authentication"
    ],
    "preciseIdentifier" : "c:@E@LAPolicy@LAPolicyDeviceOwnerAuthenticationWithWristDetection"
  },
  "title" : "LAPolicy.deviceOwnerAuthenticationWithWristDetection"
}
-->

# LAPolicy.deviceOwnerAuthenticationWithWristDetection

User authentication with wrist detection on watchOS.

```
case deviceOwnerAuthenticationWithWristDetection
```

## Discussion

You use the [`LAPolicy.deviceOwnerAuthenticationWithWristDetection`](/documentation/LocalAuthentication/LAPolicy/deviceOwnerAuthenticationWithWristDetection) policy when calling the [`evaluatePolicy(_:localizedReason:reply:)`](/documentation/LocalAuthentication/LAContext/evaluatePolicy(_:localizedReason:reply:)) method to authenticate a user on watchOS.

Policy evaluation fails if the user hasn’t set or entered the passcode on their watch or if the watch previously detected its removal from the user’s wrist.

The following shows a policy evaluation that uses wrist detection on watchOS 9 and later:

```swift
var error: NSError?
let context = LAContext()
guard #available(watchOS 9.0, *), context.canEvaluatePolicy(.deviceOwnerWithWristDetection, error: &error) else {
    // Can't evaluate the policy, either it's unsupported or a passcode isn't set.
    // See `error` for details and fall back to legacy authentication.
}

do {
    try await context.evaluatePolicy(.deviceOwnerWithWristDetection, localizedReason: "Approve a sensitive operation")
    // The user's watch is on their wrist and they entered the correct passcode.
    
} catch {
    // Watch isn't on the wrist or the user hasn't entered the correct passcode.
    // See `error` for details and fall back to legacy authentication.
}
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)