Contents

credentialIdentities(forService:credentialIdentityTypes:)

Retrieves an array of all previously saved credential identities in the store for your extension.

Declaration

func credentialIdentities(forService serviceIdentifier: ASCredentialServiceIdentifier? = nil, credentialIdentityTypes: ASCredentialIdentityStore.IdentityTypes = []) async -> [any ASCredentialIdentity]

Parameters

  • serviceIdentifier:

    An Ascredentialserviceidentifier that limits results to only that service. Pass nil to get credential identities for all services. Defaults to nil.

  • credentialIdentityTypes:

    An array of Identitytypes that limits results to only those types. Pass [] to get credential identities for all types. Defaults to [].

Return Value

An array of previously saved credential identities that match the identifier and identity type criteria.

See Also

Fetching saved credential identities