<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASPasskeyRegistrationCredential/init(relyingParty:clientDataHash:credentialID:attestationObject:extensionOutput:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Authentication Services",
      "AuthenticationServices"
    ],
    "preciseIdentifier" : "s:So31ASPasskeyRegistrationCredentialC22AuthenticationServicesE12relyingParty14clientDataHash12credentialID17attestationObject15extensionOutputABSS_10Foundation0I0VA2kC0abc9ExtensionP0VSgtcfc"
  },
  "title" : "init(relyingParty:clientDataHash:credentialID:attestationObject:extensionOutput:)"
}
-->

# init(relyingParty:clientDataHash:credentialID:attestationObject:extensionOutput:)

Initializes a passkey registration credential object.

```
convenience init(relyingParty: String, clientDataHash: Data, credentialID: Data, attestationObject: Data, extensionOutput: ASPasskeyRegistrationCredentialExtensionOutput?)
```

## Parameters

`relyingParty`

The relying party associated with the passkey.

`clientDataHash`

A hash of the client data for the credential.

`credentialID`

The identifier for the credential.

`attestationObject`

The attestation object for the passkey, which may contain an attestation statement and authenticator data.

`extensionOutput`

The extension output data.

---

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)