replaceCredentialIdentities(_:completion:)
Replaces existing credential identities with new credential identities.
Declaration
func replaceCredentialIdentities(_ newCredentialIdentities: [any ASCredentialIdentity], completion: (@Sendable (Bool, (any Error)?) -> Void)? = nil)func replaceCredentialIdentities(_ newCredentialIdentities: [any ASCredentialIdentity]) async throwsDiscussion
This method deletes existing credential identities in the store and saves the newly provided credential identity objects. On failure, this method calls the callback with an error with domain ASCredentialIdentityStoreErrorDomain and doesn’t save any of the objects in newCredentialIdentities to the store.