<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKFetchWebAuthTokenOperation/fetchWebAuthTokenResultBlock",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "s:So28CKFetchWebAuthTokenOperationC8CloudKitE05fetchbcD11ResultBlockys0I0OySSs5Error_pGcSgvp"
  },
  "title" : "fetchWebAuthTokenResultBlock"
}
-->

# fetchWebAuthTokenResultBlock

The closure to execute when the operation finishes.

```
var fetchWebAuthTokenResultBlock: ((Result<String, any Error>) -> Void)? { get set }
```

## Discussion

The closure returns no value and takes the following parameter:

- A <doc://com.apple.documentation/documentation/Swift/Result> that contains either:
  - The web authentication token
  - An error that contains information about a problem encountered fetching the token.

The closure executes only once. The closure executes serially with respect to the other closures of the operation.

Update the value of this property before you execute the operation or submit it to a queue.

---

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)