-
Notifications
You must be signed in to change notification settings - Fork 18
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
Error deserializing PublicKeyCredential
from JsValue
#48
Comments
Hi @Ben-Lichtman, the issue here is the use of I would like to one day build wasm dedicated library for the |
@Progdrasil I'm a little confused - isn't the deserialization though JsValueSerdeExt (via gloo) designed to do exactly that (remap from the web_sys type into your PublicKeyCredential type)? It would make sense to me that the answer would be to change the Deserialize implementation on Bytes to handle visit_map? Please let me know if I'm misunderstanding. |
|
Trying to implement webauthn on the browser, which includes deserializing the browser's response to the message into a
passkey_types::webauthn::CreatedPublicKeyCredential
/passkey_types::webauthn::PublicKeyCredential
, however it seems that theraw_id
field ofPublicKeyCredential
is allowed to be{}
when returned from the browser, which causes the deserialization to return an error.The text was updated successfully, but these errors were encountered: