Closed akhilv77 closed 6 days ago
please respond if anyone have a solution for it.
Hello @akhilv77 can you please also provide the base64url string value of passkey.credential_public_key
? I need that to have any chance of reproducing this locally.
@MasterKale here is my public key - cS_aTyvread-0Qvx188PiRwq_co
payload from front end:
{ "id": "cS_aTyvread-0Qvx188PiRwq_co", "rawId": "cS_aTyvread-0Qvx188PiRwq_co", "type": "public-key", "response": { "authenticatorData": "SZYN5YgOjGh0NBcPZHZgW4_krrmihjLHmVzzuoMdl2MdAAAAAA", "clientDataJSON": "eyJ0eXBlIjoid2ViYXV0aG4uZ2V0IiwiY2hhbGxlbmdlIjoiN2YzNmFmZjdhZTg0YzllZGVlNmMyYjhmOGZhM2NiYjI2NmExODNkOTRiNDA4YTY5N2ZlMzVkM2QwZmMzOGQzYyIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbGhvc3Q6MzAwMCIsImNyb3NzT3JpZ2luIjpmYWxzZX0", "signature": "MEUCIQDfe7FXZRXeSdwBof_9giQYxh3f_4ua5MuUmaygEIpi_wIgMQcjDOfTN4hyVmN2ffNhnACAF094GleihpizDBlxxHQ", "userHandle": "YWRiY2ZjYTUtM2M3YS00MWM4LTkxZjAtNWQ0NjFhNDU1Yzhm" } }
@MasterKale I identified the issue: I was storing the incorrect public key. Upon reviewing the logic, I realized that the public key from the registration response needed to be used. After making this adjustment, the process worked correctly.
Thank you for your prompt response.
I am trying to authenticate the passkey login
Error: ``` { "data": { "loginPasskey": { "success": false, "token": null, "expires_in": null, "error": "Could not decode CBOR data", "user": null, "__typename": "SignInResponse" } } }
{ "params": { "id": "teEZtZ_hZz4jFYaVVmCIulH6qS4", "rawId": "teEZtZ_hZz4jFYaVVmCIulH6qS4", "type": "public-key", "response": { "authenticatorData": "SZYN5YgOjGh0NBcPZHZgW4_krrmihjLHmVzzuoMdl2MdAAAAAA", "clientDataJSON": "eyJ0eXBlIjoid2ViYXV0aG4uZ2V0IiwiY2hhbGxlbmdlIjoiNGZjYjk2Mzk0OTFlYTFmN2NhYmM5MGU4NDU1YzU3YjM4NGI5MTg2MTZjOGJkYmYxZjc5YjkyMWI3ZGVmMWZmZCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbGhvc3Q6MzAwMCIsImNyb3NzT3JpZ2luIjpmYWxzZX0", "signature": "MEUCIQCrVV0Eo6dNhvLfiloL0QohJXhUttOaVFHZrAisW6XK7AIgIxAO0yQFARFlQ2AnSf3lkxUYVix0oWbzWz370r3XNMo", "userHandle": "ODBlYTM5MTAtMTRhNC00YTBjLWEyM2MtZTIwNDg2ZDRiZGYz" } } }