webauthn-open-source / fido2-lib

A node.js library for performing FIDO 2.0 / WebAuthn server functionality
https://webauthn.io
MIT License
394 stars 118 forks source link

attestationResult suddenly return error #134

Closed Faraz1995 closed 11 months ago

Faraz1995 commented 11 months ago

my app was just working fine, but from yesterday , attestationResult return error as "typeerror: clientdata challenge was not properly encoded base64url" first i fill my session with challenge ctx.session.challenge = Buffer.from(registrationOptions.challenge) and then in registering fingerprint i get it from session const challenge = new Uint8Array(ctx.session.challenge.data).buffer whats wrong with it?

JamesCullum commented 11 months ago

We did not do any changes, if that's what you mean. If you provide a full and running example including payloads, maybe someone can spot the issue you're encountering.

Faraz1995 commented 11 months ago

yes that was issue on my backend side