Closed ch0ngxian closed 10 months ago
I think I found the issue, it is actually not really related to the verify registration method. The error is come from when I storing sign_count
or return sign_count
in response JSON, my Rails backend facing issue when converting BinData::Bit32 inside JSON.
I can solve the issue by doing
webauthn_credential.sign_count.to_i
I am implement passkey login using @github/webauthn-json for front-end and webauthn-ruby for my Rails backend. Below is a code segment to handle the request for the registration
And then verify it in another method inside controller
But I facing error when from the verify method. It is an error throw from bindata gem which is the dependency of webauthn-ruby.
Below is the options data and credential data as reference: