Hi all, quick question, while testing sign on with...
# ory-network
p
Hi all, quick question, while testing sign on with both social and pass keys, I noticed that I don’t see any corresponding user identities showing up in the console. Is it supposed to work this way?
h
They should definitely show up - could you elaborate? Maybe with some screenshots?
p
I’ve tested both the passkey registration and registering with google, and in both instances it redirects me to my app, but I don’t see any identities created. Maybe I’m missing something from my identity config?
I figured it out. For the form, I had this:
Copy code
<form
                onSubmit={submit}
                action={flow && flow.ui.action}
                method={flow && flow.ui.method}
                id="social-login-form"
                noValidate
            >
Instead of this:
Copy code
<form
                action={flow && flow.ui.action}
                method={flow && flow.ui.method}
                id="social-login-form"
            >
Second snippet worked.
So I think I spoke too soon. The social sign up seems to be working as intended, but the passkey registration doesn’t create a user in the backend. Moving through the passkey registration prompts works fine (selecting biometric, creating passkey, etc.), and it redirects to the app, but after this all happens, when I check the console, no user was created. There’s a few reasons I’ve come up with why this might be happening: 1. I found a sample project for passkeys that doesn’t use self service flows, and it has a script tag my implementation does not. It adds an event listener to the webauthn_registration_trigger. I’ve followed the instructions given under the advanced intigrations, and either this extra script is not needed when you’re designing your own ui, or somehow I need to add it.
2. There may be an issue with the fact that this is a local development environment I’m working with, so the localhost hostname may be causing a problem.
Please let me know if any of these issues I’ve provided you think are correct. I’m really at a loss at this point.
p
Hey @prehistoric-knife-48976 I would highly recommend you check out Ory Elements first before implementing your own custom UI. Here are examples that have the different flows implemented. Once you have this setup and running, you need to enable the different methods you want (e.g. passwordless) inside your Ory Network project (https://www.ory.sh/docs/kratos/passwordless/webauthn#configuration) https://www.ory.sh/docs/kratos/bring-your-own-ui/custom-ui-ory-elements Also please check out https://www.ory.sh/docs/kratos/passwordless/passwordless