<!--
{
  "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/ASPasskeyCredentialRequest/init(credentialIdentity:clientDataHash:userVerificationPreference:supportedAlgorithms:extensionInput:)-1258o",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Authentication Services",
      "AuthenticationServices"
    ],
    "preciseIdentifier" : "s:So26ASPasskeyCredentialRequestC22AuthenticationServicesE18credentialIdentity14clientDataHash26userVerificationPreference19supportedAlgorithms14extensionInputABSo0abG0C_10Foundation0I0VSo024ASAuthorizationPublicKeyb4UserlM0aSaySo25ASCOSEAlgorithmIdentifieraGAC0a12Registrationb9ExtensionQ0VSgtcfc"
  },
  "title" : "init(credentialIdentity:clientDataHash:userVerificationPreference:supportedAlgorithms:extensionInput:)"
}
-->

# init(credentialIdentity:clientDataHash:userVerificationPreference:supportedAlgorithms:extensionInput:)

Initializes a passkey credential request, providing additional passkey registration data.

```
convenience init(credentialIdentity: ASPasskeyCredentialIdentity, clientDataHash: Data, userVerificationPreference: ASAuthorizationPublicKeyCredentialUserVerificationPreference, supportedAlgorithms: [ASCOSEAlgorithmIdentifier], extensionInput: ASPasskeyRegistrationCredentialExtensionInput?)
```

## Parameters

`credentialIdentity`

The identity of the requested passkey credential.

`clientDataHash`

The hash of the client data from the passkey authentication challenge.

`userVerificationPreference`

The relying party’s user verification preference.

`supportedAlgorithms`

A list of cryptographic signature algorithms that the relying party supports.

`extensionInput`

Input for any requested passkey extensions.

## Discussion

For credential assertion requests, supply an empty array for `supportedAlgorithms`. For credential registration requests, supply an array of one or more [`ASCOSEAlgorithmIdentifier`](/documentation/AuthenticationServices/ASCOSEAlgorithmIdentifier) values.

---

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)