<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NearbyInteraction",
  "identifier" : "/documentation/NearbyInteraction/NINearbyAccessoryConfiguration/accessoryDiscoveryToken",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Nearby Interaction"
    ],
    "preciseIdentifier" : "c:objc(cs)NINearbyAccessoryConfiguration(py)accessoryDiscoveryToken"
  },
  "title" : "accessoryDiscoveryToken"
}
-->

# accessoryDiscoveryToken

An identifier for the accessory in a session.

```
@NSCopying var accessoryDiscoveryToken: NIDiscoveryToken { get }
```

## Discussion

The value of this property refers to a specific peer accessory. To match [`distance`](/documentation/NearbyInteraction/NINearbyObject/distance-676dm) updates your app receives through a session with a peer using [`session(_:didUpdate:)`](/documentation/NearbyInteraction/NISessionDelegate/session(_:didUpdate:)), compare the argument object’s discovery token with the value of this property.

Subsequent sessions with the same peer device produce a different value for this property. For user privacy, the system assigns a random number unique to the session that prevents the correlation of this property with a particular device.

---

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)