<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 16.6.0 -",
    "macOS: 13.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASAuthorizationWebBrowserPlatformPublicKeyCredentialProvider-19bq/createCredentialRegistrationRequest(clientData:name:userID:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "s:22AuthenticationServices60ASAuthorizationWebBrowserPlatformPublicKeyCredentialProviderP06createI19RegistrationRequest10clientData4name6userIDSo0cfghilM0CAA08ASPublichi6ClientO0V_SS10Foundation0O0VtF"
  },
  "title" : "createCredentialRegistrationRequest(clientData:name:userID:)"
}
-->

# createCredentialRegistrationRequest(clientData:name:userID:)

Create a credential registration request, for registering a new passkey with the relying party.

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

## Parameters

`clientData`

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

`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.

## Return Value

The credential registration request, that you pass to [`ASAuthorizationController`](/documentation/AuthenticationServices/ASAuthorizationController).

---

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)