From 82b1f673502e9413eb6799f9d4a448f48ccb5366 Mon Sep 17 00:00:00 2001 From: Nixon Date: Sat, 26 Oct 2024 13:44:29 -0300 Subject: [PATCH] Fix webauthn option. Install @github/webauthn-json. --- lib/generators/authentication/authentication_generator.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/generators/authentication/authentication_generator.rb b/lib/generators/authentication/authentication_generator.rb index f110d15..a639d4a 100644 --- a/lib/generators/authentication/authentication_generator.rb +++ b/lib/generators/authentication/authentication_generator.rb @@ -123,8 +123,8 @@ def create_controllers def install_javascript return unless webauthn? copy_file "javascript/controllers/web_authn_controller.js", "app/javascript/controllers/web_authn_controller.js" - run "bin/importmap pin @rails/request.js" if importmaps? - run "yarn add @rails/request.js" if node? + run "bin/importmap pin @rails/request.js @github/webauthn-json" if importmaps? + run "yarn add @rails/request.js @github/webauthn-json" if node? end def create_views