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