One Logo Pool Ball
_AuthenticationServices_SwiftUI · IOS API REFERENCE

CredentialDataManager

struct · iOS 26.2+ · SDK 27.1

@MainActor struct CredentialDataManager

Members (5)

method · iOS 26.2+

reportPublicKeyCredentialUpdate

TypeScript
reportPublicKeyCredentialUpdate(relyingPartyIdentifier: string, userHandle: ArrayBuffer, newName: string): Promise<void>
Swift declaration
@MainActor func reportPublicKeyCredentialUpdate(relyingPartyIdentifier: String, userHandle: Data, newName: String) async throws

Report an update to a credential's name, such as when changing the user name on an account. This information is shared with all password managers enabled in the system. - Parameters: - relyingPartyIdentifier: Relying party (website) that the credential is saved for. - userHandle: User identifier. - newName: The new user name for the credential. - Throws: `ASAuthorizationError` if the system failed to accept the update.

method · iOS 26.2+

reportUnusedPasswordCredential

TypeScript
reportUnusedPasswordCredential(domain: string, userName: string): Promise<void>
Swift declaration
@MainActor func reportUnusedPasswordCredential(domain: String, userName: String) async throws

Report an unused password credential for a given domain and username. Password managers may remove or hide the password credential. This information is shared with all password managers enabled in the system. - Parameters: - domain: The website domain that the credential is saved for. - userName: The account user name. - Throws: `ASAuthorizationError` if the system failed to accept the update.

method · iOS 26.2+

reportUnknownPublicKeyCredential

TypeScript
reportUnknownPublicKeyCredential(relyingPartyIdentifier: string, credentialID: ArrayBuffer): Promise<void>
Swift declaration
@MainActor func reportUnknownPublicKeyCredential(relyingPartyIdentifier: String, credentialID: Data) async throws

Report that a specific credential is unknown or no longer accepted. The credential may be removed or hidden by a password manager. This information is shared with all password managers enabled in the system. - Parameters: - relyingPartyIdentifier: Relying party (website) that the credential is saved for. - credentialID: An identifier that uniquely identifies this credential. - Throws: `ASAuthorizationError` if the system failed to accept the update.

method · iOS 26.2+

reportAllAcceptedPublicKeyCredentials

TypeScript
reportAllAcceptedPublicKeyCredentials(relyingPartyIdentifier: string, userHandle: ArrayBuffer, acceptedCredentialIDs: Array<ArrayBuffer>): Promise<void>
Swift declaration
@MainActor func reportAllAcceptedPublicKeyCredentials(relyingPartyIdentifier: String, userHandle: Data, acceptedCredentialIDs: [Data]) async throws

Report a snapshot of all the credentialIDs that will be accepted for a `userHandle`. Credentials not present in the `acceptedCredentialIDs` may be removed or hidden by a password manager. Relying party may choose to perform this periodically, e.g. on every sign in. This information is shared with all password managers enabled in the system. - Parameters: - relyingPartyIdentifier: Relying party (website) that the credential is saved for. - userHandle: User identifier. - acceptedCredentialIDs: An array of identifiers that uniquely identifies the accepted credentials. - Throws: `ASAuthorizationError` if the system failed to accept the update.

method · iOS 26.2+

save

TypeScript
save(password: _AuthenticationServices_ASPasswordCredential, scope: _AuthenticationServices_ASAutoFillURLScope, title?: (string) | null): Promise<void>
Swift declaration
@MainActor func save(password: ASPasswordCredential, for scope: ASAutoFillURLScope, title: String? = nil) async throws

Save or update a password credential to the user's preferred password manager in the system. This functionality is equivalent to the saving behavior that occurs when submitting a form with a password field. The credential will be associated with the scope. - Parameters: - password: The password credential to save. - scope: The scope to associate this credential with. - title: A custom title that credential managers may use to name the account. - Throws: `ASAuthorizationError` if the system failed to accept the update. - Note: The scope's URL must be listed as an associated domain for Web Credentials for the current app _or_ the app must have the `com.apple.developer.web-browser` entitlement.

Skipped declarations

No declarations were skipped in this snapshot.

All _AuthenticationServices_SwiftUI types →