init(credentialIdentity:clientDataHash:userVerificationPreference:supportedAlgorithms:extensionInput:)
Initializes a passkey credential request, providing additional passkey assertion data.
Declaration
convenience init(credentialIdentity: ASPasskeyCredentialIdentity, clientDataHash: Data, userVerificationPreference: ASAuthorizationPublicKeyCredentialUserVerificationPreference, supportedAlgorithms: [ASCOSEAlgorithmIdentifier], extensionInput: ASPasskeyAssertionCredentialExtensionInput?)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 values.