// JS companion for the ActionPack::Passkey Ruby helpers. // // Binds click handlers to passkey buttons and manages the WebAuthn ceremony // lifecycle (challenge refresh, credential creation/authentication, form submission). // // Expected data attributes: // [data-passkey="create"] — triggers the registration ceremony // [data-passkey="sign_in"] — triggers the authentication ceremony // [data-passkey-mediation="conditional"] — on a