Alex Seigler
Alex Seigler
Seems like you have some data formatting issues. Unfortunately without seeing some sample data I doubt we're going to be able to make any meaningful recommendations.
I don't see anything obviously wrong with the code, but like I said on the [Stack Overflow question](https://stackoverflow.com/questions/74445866/assertion-failure-for-webauth-data-with-libfido2), the data inputs are probably not in the an expected format. That...
The stuff here from the web looks reasonably ok, the credential public key is missing and, the challenge is base64 encoded instead of base64url, but that's probably not the issue...
While I haven't tried it myself, I don't see any reason why it wouldn't work as is right now. I'm curious what you mean by `When I try this in...
That attestation object certainly seems malformed at first glance. See https://cyberchef.org/#recipe=URL_Decode()From_Base64('A-Za-z0-9%2B/%3D',true,false)To_Hex('None',0)CBOR_Decode()&input=bzJObWJYUmtibTl1WldkaGRIUlRkRzEwb0doaGRYUm9SR0YwWVZpWTM0elZUSW81d2htajRnbVNrNXJOK0pYUzdQUG8ybzFBRFZIVTZVZU5xK0ZkQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUZKdEdCMHNSUDk0K1BOMTU2Qm9EU3hOR2ZuMUNwUUVDQXlZZ0FTRllJQTMrRGhXOWc2V3FQblY4Nm9LbEh0M01SQkppb3pVN3RkUmU1Nnp5ME5LWUlsZ2dvZ3kyM1wvYlFDcjZtaHI1eDQ2d25CR0N1WGJod3Q3c0FoalFOZCtXRzNBND0
By padding out the end with zeroes until the decoder is happy I can see we have format none, no attestation statement, then this for the authData: `DF8CD54C8A39C219A3E20992939ACD2574BB3CFA36A3500354753A51E36A15D000000000000000000000000000000000000000000149B46074B113FDE0F375E7A0680D2C4D19F9F50A9404080C988004856080370E15BD83A5AA3E757CEA82A51EDDCC441262A3353BB5D45EE7ACF2D0D298225820A20CB6DFF6D00ABEA686BE71E3AC270460AE5DB870B7BB0086340D7561B70300000000` Further tearing...
Looking at it again now the problem is obvious: all of the various fields that are required by spec to be [base64 URL encoded](https://www.w3.org/TR/webauthn/#base64url-encoding) are all standard base64 encoded instead....
That fixed the CTAP1_ERR_INVALID_COMMAND for me on 1903.
> If there are any errors and it hasn't crashed, please inspect element and post the JS console log I'm seeing hangs on startup, and if not, on refresh every...
> Like a persistent hang? or long delay? Hangs like this, never comes back. 