Skip to content

Commit

Permalink
Fix webauthn option. Install @github/webauthn-json.
Browse files Browse the repository at this point in the history
  • Loading branch information
lazaronixon committed Oct 26, 2024
1 parent 110f5fd commit 82b1f67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generators/authentication/authentication_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 82b1f67

Please sign in to comment.