saveCredentialIdentities(_:completion:)
Saves the given credential identities to the store.
Declaration
func saveCredentialIdentities(_ credentialIdentities: [ASPasswordCredentialIdentity], completion: (@Sendable (Bool, (any Error)?) -> Void)? = nil)func saveCredentialIdentities(_ credentialIdentities: [ASPasswordCredentialIdentity]) async throwsParameters
- credentialIdentities:
An array of Aspasswordcredentialidentity objects to save to the store.
- completion:
An optional completion handler to be called after adding the credential identities. If the operation fails, an error with domain Ascredentialidentitystoreerrordomain will be provided and none of the objects in credentialIdentities are saved to the store.
Discussion
If the store supports incremental updates, call this method to add new credential identities since the last time the store was updated. Otherwise, call this method to pass all credential identities. If some credential identities in credentialIdentities already exist in the store, they will be replaced by those from credentialIdentities.