Loading...
You can indicate the user verification requirements during the ceremonies by setting the value in your options.
use Webauthn\AuthenticatorSelectionCriteria; use Webauthn\PublicKeyCredentialCreationOptions; $publicKeyCredentialCreationOptions = PublicKeyCredentialCreationOptions::create( $rpEntity, $userEntity, $challenge, authenticatorSelection: AuthenticatorSelectionCriteria::create(AuthenticatorSelectionCriteria::USER_VERIFICATION_REQUIREMENT_DISCOURAGED) ) ;
// Public Key Credential Request Options use Webauthn\PublicKeyCredentialRequestOptions; $publicKeyCredentialRequestOptions = PublicKeyCredentialRequestOptions::create( random_bytes(32), userVerification: PublicKeyCredentialRequestOptions::USER_VERIFICATION_REQUIREMENT_DISCOURAGED );