Contents

replaceCredentialIdentities(with:completion:)

Replaces existing credential identities with new credential identities.

Declaration

func replaceCredentialIdentities(with newCredentialIdentities: [ASPasswordCredentialIdentity], completion: (@Sendable (Bool, (any Error)?) -> Void)? = nil)
func replaceCredentialIdentities(with newCredentialIdentities: [ASPasswordCredentialIdentity]) async throws

Parameters

  • newCredentialIdentities:

    An array of new credential identity objects to replace the old ones.

  • completion:

    An optional completion block called after the operation finishes.

Discussion

This method deletes existing credential identities that are persisted in the store and saves the newly provided credential identity objects. If the operation fails, an error with domain ASCredentialIdentityStoreErrorDomain is provided and none of the new credential identities are saved.

See Also

Deprecated methods