PROTOCOL

CredentialRequestOptions

public protocol CredentialRequestOptions: Sendable

A model that contains the base common configuration to build the registration request.

Properties

relyingPartyId

var relyingPartyId: String?

The Registration Relying Party Identifier (rpId).

challengeData

var challengeData: Data?

The Challenge Data already encoded in the format required by the authenticator API.

userIdData

var userIdData: Data?

The UserId Data already encoded in the format required by the authenticator API.

userName

var userName: String?

The user name (user.name).

displayName

var displayName: String?

The user display name (user.displayName).

userVerification

var userVerification: String?

The configuration for the authenticator request instructing if should attempt to verify that it is being used by its owner, such as through a PIN or biometrics. Use to build ASAuthorizationPublicKeyCredentialUserVerificationPreference.

attestation

var attestation: String?

The kind of attestation that the authenticator should attempt to perform.