Deserialize standard json webauthn request and serialize to standard json request
I'm trying to use the new .net 10 implementation of passkeys on the backend. It generates a json string that is in the format that the PublicKeyCredential.parseCreationOptionsFromJSON on web supports which are then passed into navigator.credentials.create.
And on the response to store the result, it accepts the exact json object that webauthn creates.
It would be nice if RegisterRequestType could deserialize this string to the right type, and then RegisterResponseType would serialize to the exact json that webauthn creates.
I suspect that a lot of backend implementations will work this way.
edit: I should note that it would be challenge/response for both creation of the passkey and for authentication that would need toJson/fromJson constructors.