---
title: fetchWebAuthTokenResultBlock
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/ckfetchwebauthtokenoperation/fetchwebauthtokenresultblock
---

# fetchWebAuthTokenResultBlock

The closure to execute when the operation finishes.

## Declaration

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

## Discussion

Discussion The closure returns no value and takes the following parameter: A 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.
