<!--
{
  "availability" : [
    "iOS: 7.0.0 - 13.5.0",
    "iPadOS: 7.0.0 - 13.5.0",
    "macCatalyst: 13.1.0 - 13.5.0",
    "macOS: 10.10.0 - 10.15.5",
    "tvOS: 9.0.0 - 13.4.8",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 3.0.0 - 6.5.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKLocalPlayer/generateIdentityVerificationSignature(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKLocalPlayer(im)generateIdentityVerificationSignatureWithCompletionHandler:"
  },
  "title" : "generateIdentityVerificationSignature(completionHandler:)"
}
-->

# generateIdentityVerificationSignature(completionHandler:)

Generates a signature so that a third-party server can authenticate the local player.

```
func generateIdentityVerificationSignature(completionHandler: (@Sendable (URL?, Data?, Data?, UInt64, (any Error)?) -> Void)? = nil)
```

## Parameters

`completionHandler`

A block to call when the request completes.

    The block receives the following parameters:

- publicKeyUrl: The URL for the public encryption key.
- signature: The verification signature data that GameKit generates.
- salt: A random `NSString` that GameKit uses to compute the hash and randomize it.
- timestamp: The signature’s creation date and time.
- error: If an error occurrs, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is `nil`.

## Discussion

To generate a signature on your server, see the [`fetchItems(forIdentityVerificationSignature:)`](/documentation/GameKit/GKLocalPlayer/fetchItems(forIdentityVerificationSignature:)) method.

---

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)