Module: PasskeysHelper
- Defined in:
- lib/generators/action_passkey/install/templates/passkeys_helper.rb
Instance Method Summary collapse
Instance Method Details
#add_passkey_button ⇒ Object
2 3 4 5 6 |
# File 'lib/generators/action_passkey/install/templates/passkeys_helper.rb', line 2 def content_tag(:div, data: { controller: "passkey-registration" }) do tag.("Add passkey", type: "button", data: { action: "passkey-registration#register" }) end end |
#sign_in_with_passkey_button ⇒ Object
8 9 10 11 12 |
# File 'lib/generators/action_passkey/install/templates/passkeys_helper.rb', line 8 def content_tag(:div, data: { controller: "passkey-authentication" }) do tag.("Sign in with passkey", type: "button", data: { action: "passkey-authentication#authenticate" }) end end |