Re: [webauthn] Make AuthenticatorAttestationResponseJSON.clientDataJSON a DOMString or USVString (#2060)

> Is the reason [`AuthenticatorAttestationResponseJSON.clientDataJSON`](https://www.w3.org/TR/webauthn-3/#dictdef-authenticatorattestationresponsejson) defined that way for consistency alone? Specifically that _all_ `ArrayBuffer`s are converted to that?

Yes, the intention was to use consistent encoding of `ArrayBuffer` values to something that would survive transmission to the server. As `clientDataJSON` is bytes it made sense to treat it like any other `ArrayBuffer`, even though as is outlined in the spec it's handled as a UTF-8 string during response verification.

-- 
GitHub Notification of comment by MasterKale
Please view or discuss this issue at https://github.com/w3c/webauthn/issues/2060#issuecomment-2073303323 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 23 April 2024 19:50:10 UTC