Passkeys are now seamlessly integrated to Keycloak using both conditional and modal UI. There is no need to modify default browser flow to use passkeys. Passkeys support is not enabled by default. It needs to be enabled in the WebAuthn Passwordless Policy (Authentication → Policies → Webauthn Passwordless Policy).
There is new Conditional - credential authenticator that checks if a specific credential type (passkey) has been used during
the authentication process. It is added to the default browser flow to skip 2FA in case a passkey was used to log in as
the primary credential.
Further quite hidden passkey support is also in the re-authentication form, where users can choose passkey as well as password.