Class

CKFetchWebAuthTokenOperation

This operation fetches a web authentication token given an API token using an API token that you provide.

Overview

Use the add(_:) method in the CKDatabase class to add this operation to the operation queue of the public database.

To get an API token using CloudKit Dashboard, read Accessing CloudKit Using an API Token in CloudKit Web Services Reference.

Topics

Initializing a Web Auth Token

init(apiToken: String)

Initializes and returns a CKFetchWebAuthTokenOperation object with the specified API token.

Accessing Properties

var apiToken: String?

An API token that allows access to an app’s container.

var fetchWebAuthTokenCompletionBlock: ((String?, Error?) -> Void)?

The block to execute when this CKFetchWebAuthTokenOperation object fetches the web authentication token.

Relationships

Inherits From

Conforms To