whenUserSignsIn
Returns an object representing a deferred or asynchronous operation that resolves when the user signs in.
Declaration
Promise< CloudKit.UserIdentity, CloudKit.CKError > whenUserSignsIn();Return Value
A Promise object that resolves to a CloudKit.UserIdentity dictionary when the user signs in, or rejects to a CKError object.
Discussion
Use the whenUserSignsIn method to call a function when the user signs in.
myContainer.whenUserSignsIn().then(function(userIdentity) {
// The user signed in
});