Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bNobo opened this issue Jun 14, 2024 · 0 comments

Comments

@bNobo
Copy link

bNobo commented Jun 14, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant