<!--
{
  "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/ASPasskeyAssertionCredential/init(userHandle:relyingParty:signature:clientDataHash:authenticatorData:credentialID:extensionOutput:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Authentication Services",
      "AuthenticationServices"
    ],
    "preciseIdentifier" : "s:So28ASPasskeyAssertionCredentialC22AuthenticationServicesE10userHandle12relyingParty9signature14clientDataHash013authenticatorL012credentialID15extensionOutputAB10Foundation0L0V_SSA4mC0abc9ExtensionR0VSgtcfc"
  },
  "title" : "init(userHandle:relyingParty:signature:clientDataHash:authenticatorData:credentialID:extensionOutput:)"
}
-->

# init(userHandle:relyingParty:signature:clientDataHash:authenticatorData:credentialID:extensionOutput:)

Initializes a passkey assertion credential object, optionally specifying an extension output.

```
convenience init(userHandle: Data, relyingParty: String, signature: Data, clientDataHash: Data, authenticatorData: Data, credentialID: Data, extensionOutput: ASPasskeyAssertionCredentialExtensionOutput?)
```

## Parameters

`userHandle`

The user handle of the passkey.

`relyingParty`

The relying party associated with the passkey.

`signature`

The cryptographic signature of the credential.

`clientDataHash`

A hash of the client data for the credential.

`authenticatorData`

The authenticator data of the app that creates the credential.

`credentialID`

The identifier for the credential.

`extensionOutput`

An output from WebAuthn extensions.

---

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)