Right now, the registration process fails when the device cannot create any more discoverable credentials, because is full, when discoverable credential is set as "preferred" and not as "required. The expected outcome should be to fall back to non-discoverable credential as if the device wouldn't support discoverable credentials at all.
Steps to reproduce
use hardware with limited storage for discoverable credentials (for example yubikey 5 series)
Fill the device with dummy credentials
Try to register new credential using the library, with discoverable/resident credential setting set as "preferred"
Observe result
Expected result
Library should fall back into registering non-discoverable credential
Issue description
Right now, the registration process fails when the device cannot create any more discoverable credentials, because is full, when discoverable credential is set as "preferred" and not as "required. The expected outcome should be to fall back to non-discoverable credential as if the device wouldn't support discoverable credentials at all.
Steps to reproduce
Expected result
Library should fall back into registering non-discoverable credential
Actual result
Registration fails.