Closed richardhenry closed 6 days ago
Thanks for the detailed issue report.
Any chance you can console.log
the data passed into the DataView
constructor? According to the WebAuthn standard it should be an ArrayBuffer
and would be surprised if it were something else.
Also, this is done over the Safe{SDK} - so the issue should be moved to the appropriate repository https://github.com/safe-global/safe-core-sdk (this one is for the on-chain contracts).
Description
One of our users is experiencing issues using the passkey signer with their Safe wallet in my dapp. I think the issue is that they are using the Bitwarden Chrome extension for passkeys/passwords, which doesn't seem to provide passkey data as an ArrayBuffer. This is probably non-standard behavior, but Bitwarden otherwise works fine for general passkey sign-in, so I suspect that maybe the WebAuthn code in the Safe library needs to be more robust.
Here is the error that they were seeing in their browser console:
Environment
Steps to reproduce