---
title: peerDiscoveryToken
framework: nearbyinteraction
role: symbol
role_heading: Instance Property
path: nearbyinteraction/ninearbypeerconfiguration/peerdiscoverytoken
---

# peerDiscoveryToken

A value that uniquely identifies the other peer in the interaction session.

## Declaration

```swift
@NSCopying var peerDiscoveryToken: NIDiscoveryToken { get }
```

## Discussion

Discussion NI sets this property to the value of the peer discovery token you pass to the init(peerToken:) initializer.
