<!--
{
  "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:)-1jihy",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(cs)ASPasskeyCredentialRequest(cm)requestWithCredentialIdentity:clientDataHash:userVerificationPreference:supportedAlgorithms:"
  },
  "title" : "init(credentialIdentity:clientDataHash:userVerificationPreference:supportedAlgorithms:)"
}
-->

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

Initializes a passkey credential request, identifying supported algorithms by number.

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

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

An array of numbers that represent cryptographic signature algorithms the identifying party supports.

## Discussion

The `supportedAlgorithms` parameter is empty for credential assertion requests. For credential registration requests, it contains one or more numbers from the Internet Assigned Numbers Authority (IANA) [Concise Binary Object Representation Object Signing and Encryption (COSE) algorithms registry](https://www.iana.org/assignments/cose/cose.xhtml#algorithms).

---

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)