I am getting the following error when trying to su...
# talk-kratos
a
I am getting the following error when trying to submit an existing flow with valid credentials:
Copy code
Expected WebAuthN in internal context to be an object
Details in thread
I am using passwordless authentication and my schema consists of a username and webauthn credential. On registration of a new identity, the error occurs after submitting an existing flow for the second time: 1. Create browser registration flow 2. Enter an invalid username 3. Submit form 4. Kratos 303 with error 5. Resubmit form with correct username 6.
Expected WebAuthN in internal context to be an object
My guess is the webauthn credential is invalid the second time around due to Kratos’ backend not generating and submitting a new challenge???
If I create a new flow and submit valid credentials, the error goes away.
What’s weird is that it is an object, it’s just empty (top is most recent registration in DB)
b
Thanks for bringing this up. To add some context, the error message is a bit misleading, but an empty object still prevents the flow from continuing. FWIW, we are working on major improvements to the webauthn login/registration flows, so expect some changes here soon.
a
Awesome. Thanks for the info! Yeah it is hard for me to figure out what the issue is. I think if a user submits webauth, but username is invalid or something, the second submission fails. I’ll have to check again exactly how I was able to produce this