This document details the changes made to fix passkey authentication issues with 1Password and other authenticators in the Blazor application. The primary issue was related to improper serialization of WebAuthn credential data, specifically the handling of ArrayBuffer fields and required JSON properties.
- Initial Error:
The attestation credential JSON had an invalid format: Expected a valid base64url string. - Secondary Error:
credential.toJSON is not a function - Final Error:
JSON deserialization for type 'Microsoft.AspNetCore.Identity.PublicKeyCredential' was missing required properties including: 'clientExtensionResults'.