---
title: nonce
framework: passkit
role: symbol
role_heading: Instance Property
path: passkit/pkidentityrequest/nonce
---

# nonce

An arbitrary number that the signed response playload includes.

## Declaration

```swift
var nonce: Data? { get set }
```

## Mentioned in

Requesting identity data from a Wallet pass Verifying Wallet identity requests

## Discussion

Discussion A PKIdentityAuthorizationController treats this value as opaque, and has a maximum allowed size of 64 bytes. Your app’s server needs to use the same nonce value when decrypting and verifying the response. Set this property before you invoke requestDocument(_:completion:).

## See Also

### Configuring an identity request

- [descriptor](passkit/pkidentityrequest/descriptor.md)
- [merchantIdentifier](passkit/pkidentityrequest/merchantidentifier.md)
