<!--
{
  "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/ASAuthorizationPublicKeyCredentialPRFRegistrationOutput-swift.struct/init(first:second:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "s:22AuthenticationServices55ASAuthorizationPublicKeyCredentialPRFRegistrationOutputV5first6secondAC9CryptoKit09SymmetricE0V_AHSgtcfc"
  },
  "title" : "init(first:second:)"
}
-->

# init(first:second:)

Initializes an object representing the outputs of the web authentication PRF extension.

```
init(first: SymmetricKey, second: SymmetricKey?)
```

## Discussion

Call this method only if the registration request includes input values. Otherwise, use [`supported`](/documentation/AuthenticationServices/ASAuthorizationPublicKeyCredentialPRFRegistrationOutput-swift.struct/supported) or [`unsupported`](/documentation/AuthenticationServices/ASAuthorizationPublicKeyCredentialPRFRegistrationOutput-swift.struct/unsupported).

---

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)