<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASPasskeyCredentialRequest/init(credentialIdentity:clientDataHash:userVerificationPreference:supportedAlgorithms:)-52txr",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Authentication Services",
      "AuthenticationServices"
    ],
    "preciseIdentifier" : "s:So26ASPasskeyCredentialRequestC22AuthenticationServicesE18credentialIdentity14clientDataHash26userVerificationPreference19supportedAlgorithmsABSo0abG0C_10Foundation0I0VSo024ASAuthorizationPublicKeyb4UserlM0aSaySo25ASCOSEAlgorithmIdentifieraGtcfc"
  },
  "title" : "init(credentialIdentity:clientDataHash:userVerificationPreference:supportedAlgorithms:)"
}
-->

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

Initializes a passkey credential request, identifying supported algorithms with constants.

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

## Parameters

`credentialIdentity`

The identity of the requested passkey credential.

`clientDataHash`

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.

## Discussion

For credential assertion requests, supply an empty array for the `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)