fetchCurrentUserIdentity
Fetches information about the current user asynchronously.
Declaration
Promise< CloudKit.UserIdentity, CloudKit.CKError > fetchCurrentUserIdentity();Return Value
A Promise object that resolves to a CloudKit.UserIdentity dictionary if the current user is found, or rejects to a CKError object.
Discussion
If the current user is discoverable, the CloudKit.UserIdentity dictionary contains a nameComponents key that you can use to get the user’s first and last name.