Hi team, I'm trying to create a passkey with an An...
# ask-a-descoper
t
Hi team, I'm trying to create a passkey with an Android device. After biometric auth succeeds and the credential is created, I get "Failed to finish update user" error. The passkey creation works but Descope fails to update the user. Any idea what's wrong?
project id - P31S2Pxg4oYOKmEC4T3I6mi2H7lH flow id - columbus-authNumber-otp-password
r
can you export flow and send here.
t
pay attention im using top level domain
r
Thanks let me check
n
Hi Tamir, Please ensure your Biometrics / Passkey step is followed by an Update User action, and that this runs on a path where the user is already authenticated (for example, at the end of your login / sign-up flow.
t
@Nick Rodriguez it works ok for ios
also, i added what should be in the top level domain for both android and ios
n
On Android, the biometrics/passkey step only performs the WebAuthn ceremony on the device. To actually attach that credential to the user in Descope, you must follow it with an Update User / Passkeys action block, and run it while the user is authenticated (valid session / refresh token). Without that step, the device creates the passkey, but the backend fails to update the user, which is why you see “Failed to finish update user”. The iOS call works a little differently, and includes both the device passkey ceremony and the backend step that updates the Descope user and stores the passkey, so you don’t need a separate “Update User” block in a Flow.
t
So i should add something to the flow? i didnt understand.
this is what im doing now. sign up and then update. @Nick Rodriguez
n
You would redirect the connection from Sign In / Passkeys to Update User / Passkeys instead of going from Sign In / Passkeys to Custom Claim.
t
thats not the case. im moving to the signup passkey and there is the fail, not in the login part
n
In that case, I recommend replacing the Sign In / Passkeys with a Sign Up or In / Passkeys action, re-routing both connections to the Sign Up or In / Passkeys action, then moving to the Update User action.
t
it gives me "Failed to signup or in" @Nick Rodriguez
@Rahul Rijhwani also mentioning you, please help
r
Let me check @Tamir Yakov
t
@Rahul Rijhwani any new about it?
r
@Nick Rodriguez can you check I look into this but not getting solution
n
Looking into this now
Looping in @Michael Rimboim
m
@Tamir Yakov Would you mind sending a video of this occurring. In addition are you using a mobile app (android iOS) or are you going to the website chrome/safari with your device and logging in from browser?
Also are you using the same user across several different devices where they have passkeys set-up in more then one place?
t
im using android. in ios it works well for the same flow. im trying to create new passkey in one device only and not trying across several defferent devices that have passkey. again, for iOS the flow of registering new passkey and sign in with it after works well. for android it didnt. @Michael Rimboim
@Reuven Zabirov
i hope you can help here
m
@Tamir Yakov after seeing these errors and talking to engineering I believe what's happening here is you have the Android APK signed with the wrong key. Especially since it works for iOS and the passkey pop ups for you means the domain is setup correctly. Please check how you sign your application, see here. Google signs your app with their own key in most cases, this should be the same key that is used in the assetlink.json hosted on your domain.
r
@Michael Rimboim @Tamir Yakov let's schedule a call to go over this today. Tamir, because Michael is in PT - can we get this going after 6PM israeli?
t
After 6 PM won’t work for me today. I’ll be on the train heading home, so I won’t have reliable signal and I also won’t have a device available to test with during that time. If possible, we can schedule it earlier today or find a time tomorrow.
r
sorry for the inconvenience, let's try tomorrow, as for Michael it's before 8AM
i will ping you with available slots for tomorrow
🙏 1
m
Hi Tamir, were you able to print out the signing keys at runtime?