You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varchallenge="Y2xpbWIgYSBtb3VudGFpbg";varoptions={timeoutSeconds: 300,// 5 minutesexcludeList: [],// No excludeListextensions: {"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() is a 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.
The text was updated successfully, but these errors were encountered:
It was intended to be an ArrayBuffer, looks like we forgot to update the sample. It could be any ArrayBuffer related type, I don't think we care which one.
jyasskin
added a commit
to jyasskin/webauthn
that referenced
this issue
Feb 14, 2017
https://w3c.github.io/webauthn/#sample-registration shows:
But the third parameter to
makeCredential()
is aBufferSource
, 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.The text was updated successfully, but these errors were encountered: