$excludedPublicKeyDescriptors = [
];
- $authenticatorSelectionCriteria = new AuthenticatorSelectionCriteria();
+ $authenticatorSelectionCriteria = new AuthenticatorSelectionCriteria(
+ null,
+ false,
+ AuthenticatorSelectionCriteria::USER_VERIFICATION_REQUIREMENT_DISCOURAGED
+ );
return new PublicKeyCredentialCreationOptions(
$rpEntity,
random_bytes(32), // Challenge
60000, // Timeout
$this->stripPort($serverHost), // Relying Party ID
- $registeredPublicKeyCredentialDescriptors // Registered PublicKeyCredentialDescriptor classes
+ $registeredPublicKeyCredentialDescriptors, // Registered PublicKeyCredentialDescriptor classes
+ AuthenticatorSelectionCriteria::USER_VERIFICATION_REQUIREMENT_DISCOURAGED
);
}