When I press "Setup New U2F Device" on https://git.handmade.network/profile/two_factor_auth page, it shows "U2F Error Code: 2" error in JS console.
From https://developers.yubico.com/U2F/Libraries/Client_error_codes.html it seems that error code 2 is one of the following reasons:
- The visited URL doesn’t match the App ID.
- The App ID does not conform with the rules for App ID’s.
- The U2F API is called with bad parameters (e.g. calling u2f.register with the parameters in the wrong order).
I want to use Yubikey, because its much easier to login than to type 2nd factor code from my phone.