webauthn.io icon indicating copy to clipboard operation
webauthn.io copied to clipboard

Wrong variable name in the sample code for parsing the attestationObject on webauthn.guide

Open bNobo opened this issue 8 months ago • 0 comments

Thank you very much for webauth.guide web site which is great and explains webauthn very well.

I've noticed a little mistake in this sample code:

// note: a CBOR decoder library is needed here.
const decodedAttestationObj = CBOR.decode(
    credential.response.attestationObject);

console.log(decodedAttestationObject);

The variable is declared as decodedAttestationObj but console.log uses decodedAttestationObject which result to an "undefined variable" error.

I would have been happy to provide a pull request for this but I didn't found a repo for webauthn.guide, so I've created an issue here instead.

bNobo avatar Jun 14 '24 09:06 bNobo