Re: [webauthn] New PublicKeyCredential methods for JSON (de)serialization (#1703)

I gained a bit of insight into WebIDL that convinced me, for sake of WebIDL definitions, it'd be best to split up the static `optionsFromJSON()` into two new static methods instead:

- `getCreationOptionsFromJSON()`
- `getRequestOptionsFromJSON()`

I think it's a little more verbose, but is probably worth the tradeoff if it makes it easy for browser vendors to implement this new functionality.

I also took another stab at refining the description of the `toJSON()` method, this time referring to WebIDL's default instructions for converting an object to a JSON representation with the added responsibility of ArrayBuffer encoding.

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


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

Received on Wednesday, 23 March 2022 20:28:45 UTC