- From: Jeffrey Yasskin via GitHub <sysbot+gh@w3.org>
- Date: Tue, 14 Feb 2017 05:25:25 +0000
- To: public-webauthn@w3.org
jyasskin has just created a new issue for https://github.com/w3c/webauthn: == Examples show a DOMString passed to challenge, but it's a BufferSource == https://w3c.github.io/webauthn/#sample-registration shows: ```js var challenge = "Y2xpbWIgYSBtb3VudGFpbg"; var options = { timeoutSeconds: 300, // 5 minutes excludeList: [], // No excludeList extensions: {"webauthn.location": true} // Include location information // in attestation }; // Note: The following call will cause the authenticator to display UI. webauthnAPI.makeCredential(userAccountInformation, cryptoParams, challenge, options) ``` But the third parameter to [`makeCredential()`](https://w3c.github.io/webauthn/#iface-credential) is a [`BufferSource`](https://heycam.github.io/webidl/#BufferSource), which has to be one of the ArrayBuffer-related types. Which did you intend? I think it'd be possible to use `(DOMString or BufferSource)`, and say that a DOMString is base64-decoded before it's used. Please view or discuss this issue at https://github.com/w3c/webauthn/issues/341 using your GitHub account
Received on Tuesday, 14 February 2017 05:25:32 UTC