<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 17.4.0 -",
    "macOS: 14.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialProvider-8xc1s/createCredentialRegistrationRequest(clientData:displayName:name:userID:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "s:22AuthenticationServices042ASAuthorizationWebBrowserSecurityKeyPublicG18CredentialProviderP06createI19RegistrationRequest10clientData11displayName4name6userIDSo0cfghgilM0CAA08ASPublicgi6ClientO0V_S2S10Foundation0O0VtF"
  },
  "title" : "createCredentialRegistrationRequest(clientData:displayName:name:userID:)"
}
-->

# createCredentialRegistrationRequest(clientData:displayName:name:userID:)

Creates a credential registration request for registering a new password with the relying party.

```
func createCredentialRegistrationRequest(clientData: ASPublicKeyCredentialClientData, displayName: String, name: String, userID: Data) -> ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest
```

## Parameters

`clientData`

The client data that contains the reply to the relying party’s challenge.

`displayName`

The proper name of the user.

`name`

The person’s user name for their account with the relying party.

`userID`

A unique identifier for the person’s account with the relying party.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)